Private Slots

Brendan Eich brendan at mozilla.com
Tue Jan 15 10:33:42 PST 2013


Brendan Eich wrote:
> Object.freeze deals in certain observables. It does not free

("freeze", of course.)

> closure state, or weakmap-encoded state, or (per the ES6 proposal) 
> private-symbol-named property state where such properties already 
> exist. Those are not directly observable by the reflection API.
>
> Your -- as in You the abstraction implementor -- may indeed make such 
> state observable. That's a feature. Think of const methods with 
> mutable this members in C++.
>
> /be
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>


More information about the es-discuss mailing list