News for hackers. Stuff that matters.
Re:Avoid Else, Return Early (2013) by Kluny on Monday March 26, 2018 @04:42PM (#16682386)
> Same way you go more composition instead of inheritance.

What does that mean?

Re:Avoid Else, Return Early (2013) by Noumenon72 on Monday March 26, 2018 @10:48PM (#16684777)
Basically instead of Subtype extends Type inheritance, you just give your Type class a SubtypeHolder field. Makes it easier to add different behavior as things' types become less similar than you expected.