3 ms·
Same here. Personally I prefer ES6 for a few reasons: - Future compatible, more interoperable - ES6 classes can extend each other in a standards compliant way
by bcherny 10y ago
Same here. Personally I prefer ES6 for a few reasons:
- Future compatible, more interoperable
- ES6 classes can extend each other in a standards compliant way
- CS arrow functions feel verbose compared to ES6
- Constants
- More tooling support
- More features
- Upcoming features, like ES7 async/await have polyfills that you can use today (as opposed to CS - https://github.com/jashkenas/coffeescript/pull/3813 https://github.com/jashkenas/coffeescript/pull/3813)
Though I do miss a couple of things:
- The last expression in a block is implicitly returned (nice sugar for functional programming)
- Ranges ([1..10])