4 ms·
I've been writing TypeScript exclusively for so long, I forget most devs are still using the old syntax.
by j10t 12y ago
I've been writing TypeScript exclusively for so long, I forget most devs are still using the old syntax.
- brianshaler 12y agoSame here, except with CoffeeScript.
- lucidrains 12y agoMe too! I love Coffeescript, so glad we can finally build things with ecmascript 6!
- recursive 12y agoBut coffeescript doesn't even look like JavaScript. How could you confuse them?
- bshimmin 12y agoIn the specific D3 examples above, the advantages of ES6 have long been available in CoffeeScript.
- brianshaler 12y agoSeveral ES6 features very much resemble the few ways coffeescript syntax differs from older versions of ecmascript. Arrow functions, destructured assignment, string templates. In context, we were commenting on this: .attr('transform', d => `translate(${d.x + 1} 0)`) which looks pretty similar to the coffeescript counterpart: .attr 'transform', (d) -> "translate(#{d.x + 1} 0)" Five subtle differences, but it shows how the things that are new/different about ES6 are more similar to typescript and coffeescript than ES5.