On Jun 3, 2013, at 1:55 PM, Juan Ignacio Dopazo <dopazo.j...@gmail.com> 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.

Dave

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to