Use cases for WeakMap

Brendan Eich brendan at mozilla.com
Mon May 16 11:44:06 PDT 2011


On May 16, 2011, at 11:40 AM, Brendan Eich wrote:

> Frozen objects are not observably extensible. I argued that we want an implementation option to put their shallowly-frozen state (values at least) in read-only memory. I have not seen anything like an argument why this option should be forbidden.

And (sorry for followup) in particular, there's no argument for frozen objects as weak map keys needing to sprout mutable private-named properties. We have an existence proof to the contrary.

/be


More information about the es-discuss mailing list