TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Neon Programming Language

44 点作者 silasdb超过 4 年前

11 条评论

karmakaze超过 4 年前
&gt; Neon syntax is not sensitive to whitespace, and does not have statement separators. Neon source code is case sensitive, but there are no requirements on the case of user-defined identifiers.<p>What&#x27;s with the uppercase keywords? It was fine in BASIC and okay in SQL but I don&#x27;t want to hold down my shift key that much while coding.
评论 #24794716 未加载
评论 #24795186 未加载
评论 #24795067 未加载
评论 #24798428 未加载
评论 #24793605 未加载
dTal超过 4 年前
For a language that doesn&#x27;t mention BASIC anywhere in its influences, it looks an <i>awful</i> lot like BASIC.
stevefolta超过 4 年前
Not to be confused with the earlier language named Neon, which was an object-oriented Forth.
评论 #24794896 未加载
评论 #24794864 未加载
msoucy超过 4 年前
Most of the samples don&#x27;t show anything for me... Maybe a description of what it&#x27;s supposed to be, at most. No code or files.
评论 #24793450 未加载
评论 #24793462 未加载
bsder超过 4 年前
I actually really like that somebody finally used <i>decimal floating point</i> as the default.<p>The problem is that <i>any</i> small language <i>must</i> have a way to reliably manipulate integers properly, or it&#x27;s just not getting anywhere. It&#x27;s okay for that to not be the default, but it must exist.
braindongle超过 4 年前
If I&#x27;m teaching young&#x27;ns per se using a toy language, I&#x27;d reach for Scratch. It&#x27;s history and Google&#x27;s embrace of it seem like strong endorsements. Are there other good candidates in that space?<p>If I&#x27;m teaching an intro class using a general purpose language, it&#x27;s Ruby or Python. My heart lies with Ruby, but having basic Python chops is such a bigger win downstream.<p><pre><code> for i in range(1, 101): if i % 15: print (&#x27;FizzBuzz&#x27;) elif i % 3 == 0: print (&#x27;Fizz&#x27;) elif i % 5 == 0: print (&#x27;Buzz&#x27;) else: print (str(i)) (1..100).each do |i| if i % 15 == 0 puts &#x27;FizzBuzz&#x27; elsif i % 3 == 0 puts &#x27;Fizz&#x27; elsif i % 5 == 0 puts &#x27;Buzz&#x27; else puts i end end</code></pre>
评论 #24795023 未加载
评论 #24795021 未加载
评论 #24796306 未加载
Konohamaru超过 4 年前
It&#x27;s a very pretty language. It&#x27;s Pascal if Pascal were made perfect. Because it seems amenable to Hindley-Milner Type Inference, if it had that, it would be perfect. Imagine having beginners program in a Pascal-like language without having to worry about typing out types!
评论 #24803044 未加载
评论 #24794127 未加载
评论 #24793745 未加载
hhas01超过 4 年前
“Neon is a high-level, statically typed, garbage collected, imperative programming language intended for teaching and learning the craft of programming.”<p>and:<p>“TODO: Tutorial goes here”<p>Says it all, really.<p>..<p>Pascal is [thataway](<a href="https:&#x2F;&#x2F;www.freepascal.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.freepascal.org&#x2F;</a>) for those that care.
mastrsushi超过 4 年前
I dont understand this unspoken contest to make new programming languages look like archaic ones from the 1960&#x27;s. No beginner programmer wants to see := or upper case keywords.
评论 #24798262 未加载
khazhoux超过 4 年前
Why are new languages compelled to show you how to print to console??<p>&gt; print(&quot;Hello, World.&quot;)<p>Literally the least interesting thing about any language.
评论 #24798393 未加载
评论 #24806569 未加载
marethyu超过 4 年前
The syntax is ugly.