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, I'm just using this issue for a quick poll. Would any of the people that visit here prefer to have a separate website with a community (message board) instead...

I like the `local *` and `export *` features, and I find myself wishing for some way to **return all variables that aren't explicitly local**. ```moon local x x =...

Is there a way to know the specific `{{first_line, first_column}, {last_line, last_column}}` range of a parse error? This would be useful for code highlighting in my text editor. Currently, I...

```moon ok, err = pcall -> ok, err = pcall foo return err ``` compiles to: ```lua local ok, err = pcall(function() ok, err = pcall(foo) return err end) ```...

It would be cool if there was a CLI flag that compiled Moonscript with an avoidance of tail calls. The use case is debugging, of course. This is probably hard...

Currently, I often see stuff like this: ``` moonscript some_value\xyz! if some_value var = if some_value then some_value.attr else nil ``` Many languages (C#, Dart, many others) now have a...

``` running = {} Node = (tab) -> state, started = {}, false return (object) -> local result unless started ‎ result = tab.start object, state if tab.start ‎ started...

```moon return foo = -> foo! ``` ..would compile to: ```lua local foo foo = function() return foo() end return foo ``` Apart from returning a function that calls itself,...

```moon if 1 < x < 2 print '`x` is between 1 and 2 (non-inclusive)' ``` ..would compile to: ```lua if x > 1 and x < 2 then print('`x`...

This code.. ```moon foo ?= {} -- If the ?. operator is added: foo?.bar ?= {blue: true} ``` ..would compile to: ```lua local foo if foo == nil then foo...