Re:In Which I Tell You to Stop Whining About CoffeeScript
by masklinn on Friday April 13, 2012 @04:49PM
(#3838785)
> but really boring to type in almost all `for` statements.
Use _.each, you're done. Pleasure.
Re:In Which I Tell You to Stop Whining About CoffeeScript
by cheald on Friday April 13, 2012 @06:06PM
(#3839060)
Except that if you're, say, performing nested iteration, you end up creating a whole crapload of closures, ballooning up memory usage and punishing the GC.
A quick test show that coffeescript's iterator is about three times faster. http://pastie.org/3783184
Underscore's nice, but I really like Coffeescript's iterator sugar.
Re:In Which I Tell You to Stop Whining About CoffeeScript
by ricardobeat on Friday April 13, 2012 @05:35PM
(#3838963)
But performance
I also observed that using longer, more descriptive variable and function names, the difference between Coffee and compiled JS is definitely not an issue in debugging sessions. I'd say there is not a context switch even.
It feels like thinking in JavaScript and writing in a new dialect.