ImportSpecifierSet syntax

Erik Arvidsson erik.arvidsson at gmail.com
Sun Sep 8 09:32:20 PDT 2013


Oh, I forgot about that wart.
On Sep 8, 2013 12:04 PM, "Axel Rauschmayer" <axel at rauschma.de> wrote:

> The problem is that you have to bite the bullet of syntactic inconvenience
> for either default imports or normal imports. I’d prefer the syntax you
> suggested, but there seem to be many people who want to make default
> imports as simple as possible.
>
> --
> Dr. Axel Rauschmayer
> rauschma.de
> [Sent from a mobile device, please forgive brevity and typos]
>
> On Sep 8, 2013, at 17:55, Erik Arvidsson <erik.arvidsson at gmail.com> wrote:
>
> > http://wiki.ecmascript.org/doku.php?id=harmony:modules#syntax
> >
> > Currently ImportSpecifierSet is proposed to start with "{" and end
> > with "}". This made a lot more sense when we reused the destructuring
> > syntax. Now that we are using "as", these curlies look like a remnant
> > from the past.
> >
> > import {a as b, c as d} from "e";
> >
> > I'm proposing we remove these curly braces, giving:
> >
> > import a as b, c as d from "e";
> >
> > Same issue applies to ExportSpecifierSet.
> >
> > --
> > erik
> > _______________________________________________
> > 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/20130908/2755abb2/attachment-0001.html>


More information about the es-discuss mailing list