3 ms·
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 ac
by phpnode 14y ago
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!
- ConstantineXVI 14y ago> 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. [0] http://coffeescript.org/ http://coffeescript.org/
- gtrak 14y agoMacros will eventually be in core JS, see: http://disnetdev.com/blog/2012/10/14/hygienic-macros-for-javascript/ http://disnetdev.com/blog/2012/10/14/hygienic-macros-for-jav... and http://brendaneich.github.com/Strange-Loop-2012/#/40 http://brendaneich.github.com/Strange-Loop-2012/#/40 http://www.infoq.com/presentations/State-JavaScript http://www.infoq.com/presentations/State-JavaScript