Modules: Curly Free

Andreas Rossberg rossberg at google.com
Tue Apr 23 05:55:00 PDT 2013


On 22 April 2013 22:10, David Herman <dherman at mozilla.com> wrote:
> On Apr 22, 2013, at 6:48 AM, Andreas Rossberg <rossberg at google.com> wrote:
>
>> (And semantics, I presume, because
>> Dave hasn't actually told us how the "anonymous" export would be
>> distinguished internally.)
>
> Yes I have! I've explained it before, at least at the March meeting and again in passing in this thread. The anonymous export would be available on the module instance object under a standard unique symbol.

Just to be clear, AFAICT, this requires a semantic extension. A module
body is, first and foremost, a lexical environment, and environments
do not currently have a notion of symbol-named variables (nor should
they, IMO).

/Andreas


More information about the es-discuss mailing list