News for hackers. Stuff that matters.
Re:MoonScript, a programmer friendly language that compiles ... by rattray on Tuesday May 30, 2017 @02:14AM (#14443231)
That actually wouldn't be hard to make; just use a custom eslint rules!

If you want implicit returns and really want to disable "fancy features", babel plugins are fairly easy to create – blacklisting certain constructs wouldn't be very difficult, and implicit returns aren't so hard (you can copy my implementation[0] from a JS superset I built called LightScript[1]).

EDIT: bonus of building on babel is that you can get static types for free à la Flow (though typechecking implicit returns may be a pain).

[0] - https://github.com/lightscript/babel-plugin-lightscript/blob...

[1] - http://lightscript.org

Re:MoonScript, a programmer friendly language that compiles ... by weberc2 on Tuesday May 30, 2017 @10:14AM (#14445495)
Very cool! I can live without implicit returns. Thanks for the info!