—
Today marksMoonScript version 0.2.2, the CoffeeScript inspiredlanguage that compiles to Lua. It’s been approximately 11 months since the lastrelease, and I'd like to apologize for the long gap. Hopefully we'll see morefrequent updates in the future.
We've got a handful of new features and fixes:
You canfollow me on twitter for updates or complaints. Also if you'reusing MoonScript I'd love to hear about it:leafot@gmail.com.
require returns.continue keyword forskipping the current iteration in a loop.do expression and block.unless as a block and line decorator. Is the inverse ofif.if statement’sexpression.or= andand= operators.@@ can be prefixed in front of a name to access that name withinself.__class@ and@@ can beused asvalues to referenceselfandself.__class.@.__inherited callback.local keyword returns, can be used for forward declaration or shadowing avariable."hello"\upper!with statement can now be anassignment, to give a nameto the expression that is being operated on.load functions can take anoptional last argument of options.for loops correctly parse for multiple values as defined in Lua.x = "hello" if something will extract the declaration ofx if it’s not inscope yet. Preventing an impossible to access variable from being created...., correctly bubble up through automatically generated anonymousfunctions.Since the past release I've written quite a bit of MoonScript. I wrote fourgames, feel free to check out the source code:
I've written atutorial for installingMoonScript on thethree main platforms, Windows, OSX, and Linux.
I've written a script and guide forrunning Lua onHeroku. Which lets us also runMoonScript. This opens up quite a few opportunities, more on that later.
Bitbucket nowhighlights MoonScriptfiles.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 patchesand provided feedback on GitHub. See you next release.
leafo.net · Generated Sun Oct 8 13:02:35 2023 bySitegenmastodon.social/@leafo