__proto__ in Annex B (was: Re: Sep 27 meeting notes)
On Sep 29, 2011, at 6:54 PM, Geoffrey Sneddon wrote:
On 28/09/11 00:06, Waldemar Horwat wrote:
Should we standardize proto in Annex B? MarkM + a few others: Yes Waldemar, Doug: No
Unless we have a definite plan that no ES.Next impl will support proto, then by all means don't standardize it.
It is a standard (de-facto), we were just talking about making a non-mandatory normative spec for it. That does carry some weight but not much more than the de-facto standard, IMHO.
However, seeming the conclusion before was that not all use-cases of proto are handled currently, once they are addressed in ES.Next, there will still be some transitional phase. I'd rather specify it in ES.Next, even if we do then agree to drop it in ES.(Next+1).
That said about any transitional phase, if it turns out we can make it [[Writable: false]] in ES.Next, then all the better (thereby only providing a transitional phase for those who can already use Object.getPrototypeOf).
Making the spec break the existing use-cases won't make browsers break those case. We don't get free-lunch rewrites from busy/absent developers who used writable proto some time in the past for content that is still in service. The spec can only do so much.
It would be better to remove proto once the horses have found the new, healthy vegetables that replace it, and only then (based on surveys, web scans a la the sawzall study Hixie did [1], etc.).
/be
It is a standard (de-facto), we were just talking about making a non-mandatory normative spec for it. That does carry some weight but not much more than the de-facto standard, IMHO.
A non-mandatory normative spec, like that of String#substr (even
though JScript implementation is diff) would rock!
Current implementations of proto differ on how they handle null
values.
I believe FF won't allow it to be set again once it is nulled while
others allow it to be set again.
On 28/09/11 00:06, Waldemar Horwat wrote:
Unless we have a definite plan that no ES.Next impl will support proto, then by all means don't standardize it. However, seeming the conclusion before was that not all use-cases of proto are handled currently, once they are addressed in ES.Next, there will still be some transitional phase. I'd rather specify it in ES.Next, even if we do then agree to drop it in ES.(Next+1).
That said about any transitional phase, if it turns out we can make it [[Writable: false]] in ES.Next, then all the better (thereby only providing a transitional phase for those who can already use Object.getPrototypeOf).