> Just to be sure... Does a get printed only the first time the module A is
> imported somewhere, or every time?
>

Only the first time.  But the question here is about nested/inline modules.

Patrick, it must be the other way.  Here's why:

    module A {
        export function f() { console.log("A"); }
    }

    A.f();

No import required before usage of an inline module.  There is a
concatenation strategy which will preserve order-of-execution, but but
without some scope artifacts:

https://gist.github.com/3892979

I'm not saying this is a problem with the current design - just that it
complicates the concatenation story.

Kevin
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to