—
Today marks MoonScript version 0.2.2, the CoffeeScript inspired language that compiles to Lua. It’s been approximately 11 months since the last release, and I'd like to apologize for the long gap. Hopefully we'll see more frequent updates in the future.
We've got a handful of new features and fixes:
You can follow me on twitter for updates or complaints. Also if you're using MoonScript I'd love to hear about it: leafot@gmail.com.
require returns.continue keyword for
skipping the current iteration in a loop.do expression and block.unless as a block and line decorator. Is the inverse of if.if statement’s
expression.or= and and= operators.@@ can be prefixed in front of a name to access that name within self.__class@ and @@ can be used as
values to reference self
and self.__class.@.__inherited callback.local keyword returns, can be used for forward declaration or shadowing a
variable."hello"\upper!with statement can now be an
assignment, to give a name
to the expression that is being operated on.load functions can take an optional last argument of options.for loops correctly parse for multiple values as defined in Lua.x = "hello" if something will extract the declaration of x if it’s not in
scope yet. Preventing an impossible to access variable from being created...., correctly bubble up through automatically generated anonymous
functions.Since the past release I've written quite a bit of MoonScript. I wrote four games, feel free to check out the source code:
I've written a tutorial for installing MoonScript on the three main platforms, Windows, OSX, and Linux.
I've written a script and guide for running Lua on Heroku. Which lets us also run MoonScript. This opens up quite a few opportunities, more on that later.
Bitbucket now highlights MoonScript files. If you'd like to see MoonScript on GitHub say something here: https://github.com/github/linguist/pull/246.
That’s all for this release. Thanks to everyone who submitted bugs and patches and provided feedback on GitHub. See you next release.
leafo.net · Generated Tue Dec 16 16:18:13 2025 by Sitegen mastodon.social/@leafo