Remix.run Logo
BanazirGalbasi a day ago

Because Lua's Hello World is just `print("hello, world")`, which looks a lot like Python and doesn't tell you much about actually using the language.

robofanatic a day ago | parent | next [-]

The point is, it shouldn’t be too hard just to find an example and get a sense of the language.

syhol a day ago | parent [-]

Learn x in y is always my goto: https://learnxinyminutes.com/lua/

IshKebab 17 hours ago | parent | prev [-]

So put a slightly more informative hello world example then.

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

BanazirGalbasi 10 hours ago | parent [-]

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?

IshKebab 10 hours ago | parent [-]

Look at the Go homepage. It has a variety of examples.