Changing [[Prototype]]

Brendan Eich brendan at mozilla.com
Fri Dec 28 11:54:44 PST 2012


Mariusz Nowak wrote:
> Brendan Eich-3 wrote:
>> In a more serious vein, we are at cross purposes with reality. Mutable
>> __proto__ just *is*. It is a de-facto standard.
>>
>> (...)
>>
>> Self had writable parent slots. One can disagree with the design
>> decision, but it's not unique to JS or uniquely evil.
>>
>
> I'm totally after "legalizing" __proto__ (I already had few valid use cases
> for that in important projects)
> but maybe we should deprecate `__proto__` (being a "property" is really
> problematic) and standardize `Object.setPrototypeOf`? It would make things
> much cleaner and safe.

No, for the reasons given here:

https://mail.mozilla.org/pipermail/es-discuss/2012-May/022904.html

You have to read through the cited layers of text to get the full story.

/be


More information about the es-discuss mailing list