Call for opinions: attribute defaults and renaming "flexible"

Brendan Eich brendan at mozilla.org
Sun Aug 24 14:34:26 PDT 2008


On Aug 24, 2008, at 2:12 PM, Ingvar von Schoultz wrote:

>> If an object is non-extensible and all of its own properties are
>> non-configurable, then it is _sealed_.
>
> I think _locked_ would be more concrete, and Object.lock().

No good, lock connotes "acquire mutex" and suggests unlocking is  
possible.


> Sealed and frozen are so vague and similar that I have to think
> three times to distinguish between them. Locked becomes concrete
> due to the real locks that you see every day.

What real locks? If you mean on doors, the problem is that "lock" has  
a more common meaning in programming, and it has nothing to do with  
doors.

/be



More information about the Es-discuss mailing list