Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Sometimes you want to express multiple is-a relationships at the same time. In that case, composition is a hack, and multiple inheritance is a better match for the concept.

I prefer having more options how my objects behave than fewer.

But, since Ruby 2.0 does not and will not have multiple inheritance, this is all off-topic.



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

Search: