The Neon Programming Language
neon-lang.dev
neon-lang.dev
What's with the uppercase keywords? It was fine in BASIC and okay in SQL but I don't want to hold down my shift key that much while coding.
Seems like a work in progress, other sections of the docs (like the tutorial) are blank as well.
The problem is that any small language must have a way to reliably manipulate integers properly, or it's just not getting anywhere. It's okay for that to not be the default, but it must exist.
If I'm teaching an intro class using a general purpose language, it's Ruby or Python. My heart lies with Ruby, but having basic Python chops is such a bigger win downstream.
for i in range(1, 101):
if i % 15:
print ('FizzBuzz')
elif i % 3 == 0:
print ('Fizz')
elif i % 5 == 0:
print ('Buzz')
else:
print (str(i))
(1..100).each do |i|
if i % 15 == 0
puts 'FizzBuzz'
elsif i % 3 == 0
puts 'Fizz'
elsif i % 5 == 0
puts 'Buzz'
else
puts i
end
end (1..100).each do |i|
puts case
when i % 15 == 0
'FizzBuzz'
when i % 3 == 0
'Fizz'
when i % 5 == 0
'Buzz'
else
i
end
endand:
“TODO: Tutorial goes here”
Says it all, really.
..
Pascal is [thataway](https://www.freepascal.org/) for those that care.
It's not only a matter of clarity in using an asymmetric := for assigning the right side to the left side (the "=" symbol suggests that left and right side play the same role). The biggest problem is rather the fact that it's so common for newbies to write "=" when they want to express equality. (I teach in a physics department, and the mathematical background of my students is extremely solid.)
> print("Hello, World.")
Literally the least interesting thing about any language.
#include <iostream> // Needed to use std::cout
int main() { // You need to wrap the code into a "main" function
std::cout << "Hello, World.\n";
}
At least, the example shows that Neon is in the same ballpark as Python, Ruby, Nim, etc.That's not even as concise, clear and beautiful as Python 2 or BASIC:
print "Hello, World."