`import` and aliasing bindings

Kevin Smith khs4473 at gmail.com
Fri Dec 28 10:31:38 PST 2012

> 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";

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

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121228/91c181e8/attachment-0001.html>

More information about the es-discuss mailing list