News for hackers. Stuff that matters.
Re:Try JavaScript macro expansion using Sweet.js in the browser by jonahkagan on Thursday January 17, 2013 @01:13AM (#5071323)
Someone should implement CoffeeScript as macros. That would get everyone's attention.
Re:Try JavaScript macro expansion using Sweet.js in the browser by jlongster on Thursday January 17, 2013 @06:32AM (#5072086)
No, that would get all the CoffeeScripters attention. I believe it is slated though.

I much prefer raw javascript + macros. In my opinion it kind of negates some of point of coffeescript since you can implement the few key syntax improvements.

Re:Try JavaScript macro expansion using Sweet.js in the browser by jonahkagan on Thursday January 17, 2013 @10:47AM (#5073236)
Yeah, that's a good point, but if you got all the CoffeeScripters' attention and then showed them that CoffeeScript is just one possible improved syntax...
Re:Try JavaScript macro expansion using Sweet.js in the browser by kibwen on Thursday January 17, 2013 @08:54AM (#5072622)
I was speaking to one of the Sweet.js developers about this, and apparently the only obstacle is that Sweet.js doesn't have the ability to make whitespace significant. Other than that, it should be entirely possible.
Re:Try JavaScript macro expansion using Sweet.js in the browser by jonahkagan on Thursday January 17, 2013 @10:45AM (#5073223)
> Sweet.js doesn't have the ability to make whitespace significant

Feature, not a bug? But yeah, I guess that would be an impediment to implementing CoffeeScript. I'd like to see some of the CoffeeScript syntax implemented but without whitespace dependency (so it would have to be a modified version of the syntax).