On Oct 5, 2011, at 9:02 PM, John J Barton wrote:

> PrototypeJS (and Firebug) pre-date Object.keys() and .hasOwnProperty(),

hasOwnProperty was in ES3 in 1999. PrototypeJS is IIRC 2005-era. Firebug is 
post-y2k.


> so their implementation was just what could be done, not what was desired.

Seems unhistorical :-|.


> Trait.create() parallels Object.create() and I gather that Trait.compose() 
> resembles proposed Object.extend(). I wonder if the traits.js 
> 'parallel-universe' could be applied to Trait.resolve(). In my experience 
> resolve() isn't needed, but academic work on traits suggests otherwise, so it 
> might be a good thing to investigate.

Tom Van Cutsem should weigh in.

/be

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to