import { foo, bar } as obj from 'module

Darien Valentine valentinium at gmail.com
Tue Dec 12 19:46:44 UTC 2017


> To me this seems like such a no-brainer that I'm actually surprised that
this isn't possible already.

I think it’s a no-brainer now that we’ve all been using import/export in
practice for a while, but it’s understandable that it might not have been
obvious on the first pass.

I don’t know how much of a factor this is in language design, but I think
this addition could have a nice side effect — it might help encourage
patterns that happen to play well with "tree shaking".

I bet this would fly if proposed!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171212/9fa9e043/attachment-0001.html>


More information about the es-discuss mailing list