ImportSpecifierSet syntax

Rick Waldron waldron.rick at gmail.com
Sun Sep 8 13:37:58 PDT 2013


On Sun, Sep 8, 2013 at 11:55 AM, 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";
>

Subjectively, this is really hard to read, versus the curlies which provide
a visual boundary (also subjective)

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130908/889a224d/attachment.html>


More information about the es-discuss mailing list