MoonScript is a concise language that compiles to Lua. It’s the equivalent to CoffeeScript for JavaScript. It’s a bit heretical: for instance, whitespace is significant.
Using CoffeeScript has been a bit of revelation for me in JavaScript (i.e., coding client-side web applications). It ends up being more concise and readable that JavaScript.
I haven’t yet used MoonScript for Lua coding, but it’s very, very close in syntax and spirit to CoffeeScript, which is now turning into one of my favorite languages.
I think concise & readable, in the small amount of space available to write code in Codea, would be a huge win. I suspect changing the editor to make leading whitespace on source lines more visible would not be a huge change.
@hlship I quite like MoonScript (and CoffeeScript!). However its reliance on symbols — particularly :, ->, => is what made me decide against it. Lua’s wordiness, while off-putting to some, seemed a natural fit for the hard-to-type symbols on the iPad’s software keyboard.
That said, I have often come back to look at MoonScript. Though at the moment I have no plans regarding the MoonScript syntax.