Modules: Curly Free

Sam Tobin-Hochstadt samth at ccs.neu.edu
Tue Apr 23 06:06:45 PDT 2013


On Tue, Apr 23, 2013 at 9:05 AM, Kevin Smith <zenparsing at gmail.com> wrote:
>
>>
>> No, this does not require a semantic extension. I think everyone
>> agrees that environments should not have symbol-named variables.
>> However, this is neither here nor there for module instance objects,
>> which are reflections of module exports as "plain" JS objects. There
>> is no semantic extension required for them to have symbol-named
>> properties.
>>
>
> I think it rather points points to the hack:  you propose that a module
> instance object have a property which does not correspond to some lexical
> declaration.

The properties correspond to *exports*, not lexical declarations.  And
the anonymous export is certainly an export.

Sam


More information about the es-discuss mailing list