Skip to content

Comment on Objective-C Lessons from Goparent

Comments

The two approaches are more similar than one might think: inheritance is a special case of composition. In fact, traits (in some languages called typeclasses) unify inheritance and composition quite nicely.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.