Paul Harrington
Member since Oct 27, 2010
- Profile: /members/7162-paul-harrington.htm
- Comments: 3
Recent Blog Comments By Paul Harrington
-
Experimenting With Multiple Class Inheritance In Javascript
Posted on Oct 27, 2010 at 11:18 PM
@Ben, Oh I completely agree with you about not type-checking in Javascript, but thats the whole point. As far as I see, type checking is a major reason to use class inheritance, but if you're not type checking to begin with, using classes in a language where they're 100% optional and always *at le... read more »
-
Experimenting With Multiple Class Inheritance In Javascript
Posted on Oct 27, 2010 at 10:18 PM
@Paul, whoops, meant to add "Lilac.grow()" to the end of that snippet.... read more »
-
Experimenting With Multiple Class Inheritance In Javascript
Posted on Oct 27, 2010 at 10:15 PM
"I'm waiting for someone to come along and tell me why this approach makes absolutely no sense :)" Well I'm not sure about the making absolutely no sense part, but with this you lose the benefits of both classical inheritance *and* prototypical inheritance. "instanceof" b... read more »