Single import from modules without default export

Kevin Smith zenparsing at gmail.com
Wed Aug 6 04:02:31 PDT 2014


>
>
>  * The name of the imported binding is decided by the user of the module,
> not the author
>  * The user of the module does not need to know the name of the exported
> binding, set by the author of the module.
>

If you seriously want to make these claims, you need to respond to
http://esdiscuss.org/topic/quantifying-default-exports .


> I therefore want to propose that the default keyword is removed, that only
> named bindings are allowed when exporting in a module, and that method A
> imports the first named binding.
>

That would mean that simply moving a function definition around within a
module would break clients.  Ouch!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140806/0ca8c0bb/attachment.html>


More information about the es-discuss mailing list