module exports

Andrea Giammarchi andrea.giammarchi at
Fri Mar 14 12:56:57 PDT 2014

David I know the analogy was weak but since indeed you said there's nothing
like that, I named the one that felt somehow close because of some implicit

I am personally easy going on modules, I like node.js require and I think
that behind an await like approach could work asynchronously too but I
don't want to start a conversation already done many times so ... I'll
watch from the outside, waiting for a definitive "how it's going to be"
spec before even analyzing how that even works.

IMO, modules in ES6 went a bit too far than expected.

Take care

On Fri, Mar 14, 2014 at 11:45 AM, David Herman <dherman at> wrote:

> On Mar 14, 2014, at 9:37 AM, Andrea Giammarchi <
> andrea.giammarchi at> wrote:
> > I like that more I read about this, more the `with` statement comes into
> my mind ...
> There's nothing like this in JS today, so if you're only looking for
> precedent there, you're only going to be able to come up with weak
> analogies. The differences between aliasing bindings from a module with a
> fixed, declarative set of bindings, and aliasing bindings from an arbitrary
> user-specified and dynamically modifiable object are massive.
> And see my reply to JJB to get an understanding of why this is such an
> important semantics. tl;dr non-busted cycles.
> Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list