Re:Making Macros in CoffeeScript
by davidpadbury on Friday September 16, 2011 @07:25PM
(#3006714)
Yeah - this has been posted way too many times. There was some work on significantly modifying the CoffeeScript compiler to add static metaprogramming (macros+more) but I don't think it's gone anywhere recently - https://github.com/fab13n/parsec-coffee-script.
The real point of the article was to draw attention to how extensible the CoffeeScript compiler can be. Jeremy talks about this when presenting the language and it's recently been used in a couple interesting ways like contracts.coffee (http://disnetdev.com/contracts.coffee/).
and a multi dupe
http://news.ycombinator.com/item?id=2698089 http://news.ycombinator.com/item?id=2042447
Was anyone else was inspired to take this further ?