15 ms·
Lua is a very nice little language, and is great for embedding (I'm using it for the Android game I'm currently developing). Anyone who likes the functional si
by NickPollard 13y ago
Lua is a very nice little language, and is great for embedding (I'm using it for the Android game I'm currently developing).
Anyone who likes the functional side of Lua should checkout out Moonscript, which I've started using recently. Moonscript is a CoffeeScript-inspired language that compiles to Lua so can run everywhere Lua can, but has a more concise and FP-style syntax - in particular, closures are much shorter and nicer:
e.g.
(x) -> x * x
vs.
function(x) return x*x end
This makes writing higher-order function code much more compact and idiomatic.
- simias 13y agoGiven the small size (and IMHO good quality) of the lua source code wouldn't it be more straightforward to fork it and make an implementation with a different syntax? I think it would probably make debugging easier...