lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Its unfair when in the documents:

where a lua local function like:
local sum
sum = function(x, y)
  return x + y
end

could be shorten like:


local function sum (x, y)
  return x + y
end
in all documents, the lua local function are intended to write in the longer form...

Any way, nice MoonScript!

Thanks!

Best Regards!

Xpol Wan
// There is a better way!



On Mon, Nov 5, 2012 at 6:47 AM, leaf corcoran <leafot@gmail.com> wrote:
Hello everyone,

I've released a new version of MoonScript today. The programming language inspired by CoffeeScript that compiles to Lua.

It's been a while since the last release, but I've added quite a handful of features and fixes.

You can read the changelog here: http://leafo.net/posts/moonscript_v022.html

You can read more about the language on the homepage: http://moonscript.org

Also, check out the reference manual. It's a super detailed description of all the language features: http://moonscript.org/reference/

I'm on GitHub too: https://github.com/leafo/moonscript

Some of the notable things in this release are a continue keyword, vastly improved line number source mapping, string interpolation, and a do _expression_.

It's not on LuaRocks yet, but you can install like so:

luarocks build http://moonscript.org/rocks/moonscript-0.2.2-1.rockspec


I'd love your feedback, Thanks!

- Leaf