I suppose you ALWAYS use delegation to define an is-a class relationship. If so, I am sorry for you.
Inheritance is an easier way to define an is-a relationship. Unfortunately it is often overused. Unfortunately changes to super-class can easily break sub-classes, specially in script languages where there is no good separation between interfaces and implementations... Mixins ($.extend) suffer same problems. An possible solution of this problems is to implement "explicit overriding" (like C#). It's not hard to implement, but it would probably make inheritance unnecessary harder to use, specially in JS, where it is probably that sub-class and super-class is defined by same programmer. However I think that inheritance is an powerful tool in hand of good programmers. Sorry for my English. On May 14, 1:07 am, DBJDBJ <[email protected]> wrote: > "Inheritance is Evil" ... > > http://www.berniecode.com/writing/inheritance/ > > --DBJ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
