Support () => {}() syntax?

Bradley Meck bradley.meck at gmail.com
Sun Oct 2 18:30:55 UTC 2016


To clarify top level await is a synchronization point for module loading.
While I do think `do` expressions and `do async` have values, I don't think
they fit the use case of top level await.

On Fri, Sep 30, 2016 at 9:23 AM, Allen Wirfs-Brock <allen at wirfs-brock.com>
wrote:

> On Sep 30, 2016 6:10 AM, Kevin Smith <zenparsing at gmail.com> wrote:
> >
> > Ideally there will be an `async` version of do expressions, which
> evaluate to a promise:
> >
> > ```
> > let promise = async do {
> >   await something();
> > };
> > ```
> >
> > (BTW, if we get such a thing, we might not really need
> top-level-module-await...)
> >
> +1 !!
>
> _______________________________________________
> 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/20161002/a11b91f7/attachment.html>


More information about the es-discuss mailing list