5 ms·
Does love work well with moonscript?
by vbit 11y ago
Does love work well with moonscript?
- leokaplan 11y agoYes, very well
- thegeomaster 11y agoWhile we're at it: everyone, check out MoonScript [1]. It's a great, succinct and featureful compile-to-Lua language, although sadly not very widespread at the moment. It features significant whitespace, syntactic sugar to reduce keyword noise in programs, table and list comprehensions, line (statement) decorators, classes, export and import for working with modules, implicit return, JSON-like table literals and much, much more. I, for one, absolutely love working with it. [1]: http://moonscript.org http://moonscript.org
- nikolay 11y agoEveryone check out Lapis [0] as well! [0]: http://leafo.net/lapis/ http://leafo.net/lapis/
- superfunc 11y agoAwesome, thanks for this! I've always found love to be great, but I didn't enjoy using lua once the program grew to a non-trivial size.
- tedajax 11y agoI tried but the \ syntax for calling an instance method on an object is asinine and I hate it.
- TeMPOraL 11y agoThere's also MoonLisp compiling to Lua, written in... MoonScript [0]. The output isn't pretty, but I'm looking for a lisp for NodeMCU, so I might give it a shot :), maybe combined with [1] due to way NodeMCU seems to work (interpreting / locally compiling files + little memory = you want to save on source length, including comments). [0] - https://github.com/leafo/moonlisp https://github.com/leafo/moonlisp [1] - https://mothereff.in/lua-minifier https://mothereff.in/lua-minifier
- russellsprouts 11y agoYeah. I have used it with love. Moonscript is compiled beforehand to Lua, so it works the same. Lua's syntax is very nice, but the conciseness of Moonscript is nice for a lot of things.