3 ms·
Just out of curiosity, do you use CoffeeScript for all your underscore.js and bakckbone.js development?
by ez77 16y ago
Just out of curiosity, do you use CoffeeScript for all your underscore.js and bakckbone.js development?
- jashkenas 16y agoNope. Both of those are JavaScript libraries aimed towards widespread adoption by JavaScript users, and therefore aren't written in CoffeeScript. That said, I did port Underscore.js to CoffeeScript once, and the resulting compiled JS ran (a little bit) faster than the original version.
- detst 16y agoWhy does that stop you from writing them in CoffeeScript, especially if it's faster? Because you want contributions back to the projects from JS-only developers?
- jashkenas 16y agoYep. I'm a pragmatist at heart. I don't think that either Underscore.js or Backbone.js would have gotten the same sort of adoption they've seen (eg. github.com/popular/watched) if they had been written in CoffeeScript. Perhaps in a year or two it would be different.