On Dec 28, 2012, at 10:31 AM, Kevin Smith <[email protected]> wrote:

> However, I agree that the destructuring syntax for module imports may not be 
> the clearest choice in terms of raising the right expectations. (As we have 
> discovered already, it has other issues, namely people confusing the 
> direction of renaming.) Maybe it is a bit too clever, and considering 
> alternatives a worthwhile idea.
> 
> There's this:
> 
>     import x as y, a as b from "url";
> 
> But I find that much less readable than:
> 
>     import { x: y, a: b } from "url";

Right. It also gets more verbose very quickly.

> Destructuring syntax is what it is.  Developers just need to start reading it 
> the right way.

Agreed.

Dave

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to