(I was about to name this thing ES7 considered harmful, but first I have to write a «considered harmful» considered harmful post ^^)
You, working with async/await or whatever ES7 unfinished specs, hoping it'll work in production. pic.twitter.com/vy5cO96GoI— Siegfried Ehret ［Ξ］ (@SiegfriedEhret) 29 février 2016
The TC39's github page shows that
await also have the following syntax proposal:
I just can't wait for the syntax to be changed.
People will either have to:
- update the code to fit the final syntax and wait for a babel thingie to compile the good to some good old ES5.
- keep their code and continue to use a unsupported syntax using a soon-to-be deprecated babel thing.
- (╯°□°）╯︵ ┻━┻
Another example: Object.observe was removed from ES7 in november 2015.
In the end, by widely using unreleased features or specs you live in another world that can crumble at any time. And people are pushing a spec in a direction that may not be the optimal one.
Betting on unfinished specs is dangerous.
— Siegfried Ehret
await, I would like to propose the following syntax: