4 ms·
Making Macros in CoffeeScript
- dramaticus3 15y agoPosted on December 9, 2010 and only one of two articles on the blog about Coffeescript and a multi dupe http://news.ycombinator.com/item?id=2698089 http://news.ycombinator.com/item?id=2698089 http://news.ycombinator.com/item?id=2042447 http://news.ycombinator.com/item?id=2042447 Was anyone else was inspired to take this further ?
- davidpadbury 15y agoYeah - 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 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/ http://disnetdev.com/contracts.coffee/).