Modules: Curly Free

Kevin Smith zenparsing at
Mon Apr 22 20:39:50 PDT 2013

> It's a bad idea. It forces you into a default export if you don't have
> one, and makes it a breaking API change if you want to add one. It becomes
> an attractive nuisance where clients can use it as an alternative for the
> module binding form (`import module` in your syntax), which then makes it
> impossible for a library author to add a default export later.
Alas, I'm afraid I'm doomed to have more bad ideas before the day is done!
 I agree with your points, but find myself tiring of this anonymous hack
all over again.  I think I'll retire for the present.

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list