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, so I have noticed that Moonscript did not support `goto` method. This is annoying for me since I've always use `goto` in Lua. ![Screenshot_2022-07-13-16-07-20](https://user-images.githubusercontent.com/71205197/178684167-1c994b1b-ad53-4263-8d2e-4e5eef61f531.png)

I miss an operator for in-place appending an element to an array, e.g. ``````moon array #= item `````` as syntactic sugar for the common idioms ``````moon array[#array+1] = item table.insert...

When running file 'test.moon' with following (incorrect) syntax: class Thing name: "unknown" class Person extends Thing say_name: => print "Hello, I am", @name with Person! .name = "MoonScript" \say_name! I...

Hi! How do I do block comments in moonscript? Apart from their vanilla usage, they are handy in switching off blocks of code while debugging. TIA, --Vladimir

planned

When coding with MS, some statement may become too long, add support for `\` to escape a new line in the line break will help separating codes into multiple lines....

```moon { a, b, c } = [a * 2 for a in *{ 1, 2, 3}] ``` in http://moonscript.org/compiler/: ```lua do local _accum_0 = { } local _len_0 =...

How can I call ls.NewClosure and set local variable ``` func Test() { L := lua.NewState() defer L.Close() L.SetGlobal("i", lua.LNumber(11)) L.NewClosure(func (ls *lua.LState) int { // what can i do...

A nice feature to have would be JavaScripts fill operator: ```javascript const object1 = { foo: "Hello", bar: "World" } // { foo: "Hello", bar: "World" } const object2 =...

Really cool language, I really enjoy writing it... that being said, I would absolutely love to see a nil check/existence operator (maybe `?`) and a pipe operator (similar to Elixir...

Since lua is whitespace-insentitive, why not just squeeze code together? [Probably working fork](https://github.com/buckle2000/moonscript/) Will close #311.