module exports

David Herman dherman at
Fri Mar 14 11:45:03 PDT 2014

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.


More information about the es-discuss mailing list