3 ms·
I'm replacing CoffeeScript with ES6 because I think it's a better language. CoffeeScript is beautiful, and was a nice stopgap, but there are some surprising sy
by tlrobinson 12y ago
I'm replacing CoffeeScript with ES6 because I think it's a better language.
CoffeeScript is beautiful, and was a nice stopgap, but there are some surprising syntax edge cases. There are also a lot of people who don't know or refuse to learn/use CoffeeScript for whatever reason. ES6 is the way forward for those people.
Also, ES6 generators + promises + Bluebird's "coroutine" function is an awesome way to avoid callback hell. It's similar to ES7 (and C#) async/await, but works everywhere (via Babel) today. IcedCoffeeScript and streamline.js are kind of similar but don't use promises.
EDIT: I see CoffeeScript actually supports ES6 generators now.
- rtfeldman 12y agoAnd that's a perfectly sensible reason. :)