Hacker News new | ask | show | jobs
by alptrv 4370 days ago
Are there any plans to introduce generators or async/await?
2 comments

Yes! From Gilad:

> We are working out a proposal that is somewhat similar to async-await in C#. Again, we hope to finalize that in time for the next rev of the standard. Details as soon as coherent articles explaining it all can be put together.

I'd like to know too. As clunky as JS is, generators make possible some pretty interesting stuff[1] that I would miss in Dart.

[1] https://github.com/visionmedia/co

It sounds like they will add support for the same constructs as JS will have in ES7 https://github.com/lukehoban/ecmascript-asyncawait