Open toovy opened 7 years ago
+1 I would also love to see that - I want async/await
!
@toovy - btw, you can drop the backticks even now - with CoffeeScript 1.12.5
. :)
can we test it in another branch?
1.12.6 released
@kimroen - can you help on this one? We all would like to use CoffeeScript 2!
Guys, do you have any updates?
Is this project still alive?
Hi there,
Coffeescript 2 is getting real: http://coffeescript.org/v2/ (https://github.com/coffeescript6/discuss/issues/80).
It supports many ES2015 features. The reason why I would love to see it in ember is the async/await and generator support. The most important reason though is that the nasty import/export hacks using backticks to write plain JS is not needed any more:
I've made a quick test and it is simple to get it running by altering only a few lines of ember-cli-coffeescript and broccoli-coffee:
But I think this needs more discussion on a meta level, as Coffeescript 1 runs in every browser, but Coffeescript 2 needs transpilation. Thankfully Ember includes Babel, so that is also pretty easy to accomplish:
That's the reason why I did not just create pull requests. Maybe new repos should be created, called ember-cli-coffeescript-2 and babel-coffee-2? That would ensure that there is a clear distinction between old Coffeescript (1) and ES2015 Coffeescript (2).
Looking forward to hear your opinions.
BR, toovy