Re: [heycam/webidl] Dictionary mixins (#195)

This specific case can't be handled with dictionary inheritance?

The general case of multiple specs all wanting to add stuff to multiple dictionaries can't be handled that way, of course, but the specific cases of "multiple specs wanting to add stuff to a single dictionary" case is handled by partial dictionary and afaict "multiple specs wanting to share a single dictionary definition but extend it" is handled by dictionary inheritance.  Unlike interface inheritance, dictionary inheritance has very little in the way of observable properties (nothing apart from [[Get]] ordering), so should be quite usable as a specification device as needed here.

We can probably do full-on dictionary mixins, but I'd like to see a better justification for the resulting complexity, both in terms of spec and in terms of implementations.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/195#issuecomment-255372564

Received on Friday, 21 October 2016 13:12:07 UTC