Re:Vigil: A programming language with eternal moral vigilance
by phpnode on Thursday January 03, 2013 @01:03PM
(#5003581)
projects like this are why coffeescript needs to support macros. There are so many coffeescript dialects out there that make minor changes to the language to accomodate one or two extra features, e.g. IcedCoffee. I don't want to have to use a separate, presumably less well supported language for this kind of stuff, just let me plug it in!
Re:Vigil: A programming language with eternal moral vigilance
by ConstantineXVI on Thursday January 03, 2013 @01:32PM
(#5003753)
> The golden rule of CoffeeScript is: "It's just JavaScript"[0]
Macros would be deviating from core JS too much to fit with CoffeeScript's goal. Just happens that the compiler is nicely hackable to allow for these projects.
Not to say I object to the idea of an expanded CoffeeScript, just that it should be a fork.
Re:Vigil: A programming language with eternal moral vigilance
by gtrak on Friday January 04, 2013 @12:41PM
(#5008709)
Macros will eventually be in core JS, see:
http://disnetdev.com/blog/2012/10/14/hygienic-macros-for-jav...
and http://brendaneich.github.com/Strange-Loop-2012/#/40 http://www.infoq.com/presentations/State-JavaScript
On a serious note, what you're thinking of is contracts, like so[0]
[0] http://disnetdev.com/contracts.coffee/