Contract extensibility pattern

If I were asked to vote on the direction Cairo should take to answer the question of code reuse, I would strongly vote to apply wisdom from the development of object oriented paradigm, which is composition over inheritance. Inheritance can be so easily abused that it should be considered an antipattern.

In my opinion current code inclussion mechanism should be refined rather in the direction of traits than a full blown inheritance.

16 Likes