logoalt Hacker News

IshKebabtoday at 9:24 AM1 replyview on HN

So put a slightly more informative hello world example then.

Look at the Go homepage. Or Nim. (But not Rust sadly.)


Replies

BanazirGalbasitoday at 3:59 PM

Rather than Hello World, I'd rather see something like a classic Fibonacci calculator with recursion. That way you see function definitions, variable typing, math operations (Lua doesn't have increment/decrement operators or augmented assignments), and even tail-call recursion if it's an option. Hello World is really only useful as an environment verification - do you have your machine set up so you can run the code, or are you missing something?

show 1 reply