monadic extension to do-notation

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


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

/be

On Mon, Feb 22, 2016 at 5:28 PM Alan Johnson <alan at breakrs.com> 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 mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160222/5475fc7a/attachment.html>


More information about the es-discuss mailing list