Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sounds like you could use multiple inheritance / mixins.


You have a configuration space, and you have a set of behaviour you want to associate with different configurations. Inheritance bundles the behaviour into something (a class) and lets you combine and override as necessary. But multiple inheritance doesn't really make your life easier - you still need to work out the order of precedence, which ancestor (trait) takes effect, etc. All this is essential complexity buried behind an ontological classification scheme that wasn't really designed for it, adding in inessential complexity.

Using a tool adapted to the job really can make life easier though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: