Re:Why the Rampant Fanboyism Around CoffeeScript Worries Me
by chime on Sunday September 11, 2011 @10:51PM
(#2985647)
> it doesn't fundamentally change JavaScript—but man does it do it well.
I guess it really depends on our definition of fundamental. Certainly, it doesn't turn JS into Lisp. But it does introduce concepts that while possible in JS, are not nearly as easy and transparent to use. E.g. the 'do' keyword. When I write CS, I think using 'do' and not "let me insert a closure here to ensure variable values aren't overwritten in the loop." Same with comprehension, function binding (=>), and classes in CS.
Syntactically, I can't live without Heredocs because my project involves a lot of HTML generated dynamically through JS/CS.
That being said, CoffeeScript has bugs[1]. I've run into its bugs before, and there are few things more frustrating than dealing with bugs in your language.
[1]: https://github.com/jashkenas/coffee-script/issues?labels=bug...