Re:CoffeeScript 1.1.0 released
by MatthewPhillips on Sunday May 01, 2011 @04:45PM
(#2504035)
That wouldn't be useful except for debugging. You can already do this if you also include the compiler. You'd never want to include uncompiled coffeescript in production, it can't be minified to the extent that js can.
[ Parent
| on HN ]
Re:CoffeeScript 1.1.0 released
by SupremumLimit on Sunday May 01, 2011 @05:17PM
(#2504107)
What exactly do you mean by "can't be minified to the extent that js can"? Why is that? CoffeeScript files are usually about 1/3 smaller than corresponding JS to begin with.
Re:CoffeeScript 1.1.0 released
by MatthewPhillips on Sunday May 01, 2011 @05:23PM
(#2504120)
Well, I meant that whitespace is significant in coffeescript whereas it isn't in javascript. You have a point though, coffeescript isn't nearly as wordy as javascript so it's much less code.
The impact of whitespace on size has to be almost eliminated with gzipped transmission, too - it's about the least entropic content in your code.