News for hackers. Stuff that matters.
Re:MoonScript, a programmer friendly language that compiles ... by shalabhc on Monday May 29, 2017 @09:36PM (#14442516)
Moonscript uses local by default (compiles to Lua). Here is your code in Moonscript:

    foo = {
      x: {1, 2, 3},
      y: (a, b, c) ->
        sum = a + b + c
        sum * sum
    }
Re:MoonScript, a programmer friendly language that compiles ... by weberc2 on Monday May 29, 2017 @10:34PM (#14442711)
Yeah, now just strip away all the other stuff and we'll be good.
Re:MoonScript, a programmer friendly language that compiles ... by weberc2 on Tuesday May 30, 2017 @10:16AM (#14445513)
Not sure why this was so controversial... I mentioned my requirements in my original post and moonscript clearly doesn't satisfy them. Sorry if that hurts feelings...