Module import/export bindings

Brendan Eich brendan at mozilla.org
Wed Mar 18 20:01:34 UTC 2015


Allen Wirfs-Brock wrote:
> On Mar 18, 2015, at 9:34 AM, caridy wrote:
>
>> >  Kyle, same answer, `let x = y` is just an assignment. btw, you cannot change `y` in that module, that's a static error. 
>>
>
>
> Assignment to 'y' a dynamic error.  A while ago we eliminated all early errors that required static determination that their target was going to be an immutable binding. 
>

Right. Import bindings are like getter-only accessors. Dynamic error to 
assign to them.

/be


More information about the es-discuss mailing list