3 ms·
> The javascript language has advanced considerably. Not only has it adopted many of the syntax sugar features such as classes and fat arrow function, it has g
by kenOfYugen 10y ago
> The javascript language has advanced considerably. Not only has it adopted many of the syntax sugar features such as classes and fat arrow function, it has gone beyond coffeescript with features such as async/await and object spread properties.
Just like CoffeeScript's good parts got into JavaScript, JavaScript's new features are being merged into CoffeeScript. 'async/await' becomes just an elegant 'await' in CS and pure generators are just functions that yield, without special annotations (i.e function*()).
CoffeeScript is nearing its 2.0 release [1]. So the language is not "dead", and there is still room for "innovation" repeating the cycle anew.
1. https://github.com/coffeescript6/discuss/issues/71 https://github.com/coffeescript6/discuss/issues/71
- jessaustin 10y agoSince python has had generators that "are just functions that yield, without special annotations" like, forever, I was surprised when vanilla JS decided generators need more punctuation.
- kenOfYugen 10y agoThey had to, since changes cannot break backwards compatibility with the legacy web.
- jessaustin 10y agoThat seems plausible, but what would "yield" have meant before?
- WorldMaker 10y agoIt might have been a function or variable name. In finance and farming domains it's a somewhat likely function/variable name.
- skilesare 10y agoYou just made my heart happy. I've been hoping for an updated and backwards compatible coffeescript update for a while. Glad to see it is coming along.
- sjogress 10y agoCoffeescript 2 has some breaking changes, most notably classes since it is moving to ES6 classes instead of its own implementation. I'm with you though, I much prefer Coffeescript syntax over Javascript so I'm really happy to see it coming along.