Use cases for WeakMap
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.
More information about the es-discuss