Yehuda Katz
(ph) 718.877.1325

On Tue, Oct 16, 2012 at 9:21 AM, Kevin Smith <[email protected]> wrote:

>
> 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.
>

Is that actually true of the current proposal?


> 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
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to