Module syntax

David Herman dherman at
Mon Jun 3 14:34:19 PDT 2013

On Jun 3, 2013, at 1:55 PM, Juan Ignacio Dopazo <dopazo.juan at> wrote:

> Now that it's been decided that braces are not a form of destructuring and the colon replaced with `as`, what's the benefit of using braces? Why not this previous proposal?
> import foo as foofoo from "foo";
> import "bar" as bar;

Because it's ambiguous with default import; without curly braces, a single named import, without the "as" renaming, would have indistinguishable syntax from importing the default export.


More information about the es-discuss mailing list