Modules, Concatenation, and Better Solutions

Yehuda Katz wycats at gmail.com
Tue Oct 16 06:30:22 PDT 2012


Yehuda Katz
(ph) 718.877.1325


On Tue, Oct 16, 2012 at 9:21 AM, Kevin Smith <khs4473 at gmail.com> 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
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121016/8eedacf9/attachment-0001.html>


More information about the es-discuss mailing list