Does async/await solve a real problem?

jordi baylina jordi at baylina.cat
Sat Mar 28 11:56:41 UTC 2015


I propose that all the calls to any async function will be  implicit
(without the need of the await keyword). And precede it with a nowait only
when you want a promise.

See this snipped proposal:
https://gist.github.com/jbaylina/692d4e43329c8c0d22dd

This way, the code will not have the async clutter in the logic of the
function, but will be need to be declared async advising the programmer
that the code will not be executed atomically.

This proposal does not change the logics of the async/await proposal. It
only change the way to call async functions. What is now implicit make them
explicit with nowait and what is explicit with await make it implicit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150328/ea19062e/attachment.html>


More information about the es-discuss mailing list