Hacker News new | ask | show | jobs
by lf-non 3821 days ago
Curious why the authors did not choose to use Babel+ES7 async/await instead of generators.

The discussion in this ESDiscuss thread (https://esdiscuss.org/topic/does-async-await-solve-a-real-pr...) points to multiple advantages of embracing Async/Await over generators for asynchronous code.

1 comments

I can't speak for the author, but it may be for simplicity's sake.

Personally I would have still have gone Babel+* but a Babel transpilation pipeline adds a non-negligible level of complexity to a project, especially when it comes to debugging/performance optimisation.