ModuleImport

Russell Leggett russell.leggett at gmail.com
Fri Jun 27 07:16:02 PDT 2014


On Fri, Jun 27, 2014 at 10:11 AM, Kevin Smith <zenparsing at gmail.com> wrote:

>
>>
>>     var mkdirp = require('mkdirp');
>>
>
> Exactly.  In ES, you would see this:
>
>     import { mkdrip } from "mkdirp";
>
> Python has a somewhat similar module system, and import-renaming is the
> exception, not the rule.  Also, I've never heard anyone complain about
> having to know the name of a module member.  In fact, specifying the
> exported name is essential for tracing out a code base that you're
> unfamiliar with.
>
>
Haha, yes, you and I seem to be sharing a brain on this, I sent early and
you wrote most of what I wrote. I still like curly-free, but that's
bikeshedding to me. The important point is removing default exports.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140627/c8d6f5ec/attachment.html>


More information about the es-discuss mailing list