monadic extension to do-notation

Brendan Eich brendan.eich at
Mon Feb 22 17:15:25 UTC 2016

We'll get it on the next TC39 meeting's agenda.


On Mon, Feb 22, 2016 at 5:28 PM Alan Johnson <alan at> wrote:

> If this is done, please go with `async do { … await … }`. May as well
> reuse existing syntax as much as possible. As mentioned, `<-` is
> problematic both from the standpoint of conflict with existing operators
> and incomplete analogy with Haskell. If the result should be Promise-ified,
> best to indicate this explicitly with `async`.
> I do think that having a syntax for async expressions is very useful.
> IIFEs already feels like a hack around the lack of expression-orientedness
> of control flow structures in JS, and async-IIFEs just compound the issue
> of syntactic noise for straightforward operations.
> _______________________________________________
> es-discuss mailing list
> es-discuss at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list