Le 03/04/2011 10:12, David Bruant a écrit :
> Le 03/04/2011 02:11, Brendan Eich a écrit :
>> On Apr 2, 2011, at 4:19 PM, David Bruant wrote:
>>
>>> I have the feeling that none of these can help out with multiple 
>>> inheritance. This is the problem I want to address.
>> Why? I mean, given the WebIDL and DOM changes.
> Because people want it; Node+EventTarget wasn't the only use case. I'll
> take the number of article that pop up when typing "multiple inheritance
> javascript" on Google as a proof.
> Basically, people all do mixins which prevents them from using
> instanceof. They often acknowledge that it is the only limitation [1]
> [2] [3]. I have even seen people implementing an isInstanceOf function
> [2] [3].
With the ability to trap all prototype-climbing traps, proxies will be
used to implement multiple inheritance [4]. Yet, instanceof won't be of
any help to detect the multiple inheritance.

> My initial proposal was an attempt to address this issue.
>
>
>
>>> Is multiple inheritance a use case that TC39 intends to address in a 
>>> generic manner?
>> No.
> It clarifies things. Thank you.
>
> David
>
> [1]
> http://webreflection.blogspot.com/2009/06/wait-moment-javascript-does-support.html
> [2] http://www.polyglotinc.com/AJAXscratch/Class/InterfacesFromScratch.html
> [3]
> http://www.steinbit.org/words/programming/multiple-inheritance-in-javascript
> Taken from the 6 first Google search results for "multiple inheritance
> javascript"
[4]
http://journal.stuffwithstuff.com/2011/02/21/multiple-inheritance-in-javascript/
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to