r/coffeescript • u/gustix • Jan 29 '16
CoffeeScript to add support for ES6 module syntax
https://github.com/jashkenas/coffeescript/issues/3162#issuecomment-176545595
21
Upvotes
r/coffeescript • u/gustix • Jan 29 '16
2
u/gustix Jan 29 '16
Finally some ES6 traction.
The community commenting in the ES6 issues in the CoffeeScript issue tracker are pretty unified with the notion of just translating the syntax to valid ES6 syntax and do nothing else.
In short, if you want to use ES6 features w/CoffeeScript in a browser you will have to use a transpiler like Babel after the coffee is compiled to JS.
Regarding other ES6 features:
var, let and const is not needed in CS, this is taken care of by the coffee scoping already (except maybe the hoisting that happens in some cases which you need to be aware of)
It would be nice to have ES6 classes as well.