moonscript icon indicating copy to clipboard operation
moonscript copied to clipboard

:crescent_moon: A language that compiles to Lua

Results 118 moonscript issues
Sort by recently updated
recently updated
newest added

Hello again! This is fairly easy to reproduce: when given ```moon \method -- oops ``` in a file, `MoonScript version 0.5.0` produces this output: ``` issue.moon Compile error: ...local/share/lua/5.4/moonscript/transform/transformer.lua:23: table...

Hello! I was just bitten by a curious little code generation bug: when using an augmented assignment with the length operator, Lua is generated that doesn't follow the order of...

Not entirely sure if this is a feature or a bug, but metamethods defined in a class do not work in child classes. e.g. ``` class Foo new: => __tostring:...

I'm a bit paranoid when declaring local variables in Lua/Moonscript; I like to make it explicit that the variable is local to the current scope. Since I don't see the...

Moonscript (main.lua): ``` -- print the first number divisible by 4 foo = () -> for i = 0, 40 continue if not (i % 4 == 0) print i...

When using `local` in class block the declaration should be hoisted top so methods can access it. This already works correctly with assign, as seen in second example ``` class...