Re:If statements considered harmful
by joncampbelldev on Tuesday March 14, 2017 @05:19AM
(#13866105)
that sounds a lot like sharing code by inheritance as opposed to composition. which is unrelated to dispatching by the type of the first (or implicit) argument.
i personally would prefer to code to interfaces and keep hierarchy separate from behaviour
i personally would prefer to code to interfaces and keep hierarchy separate from behaviour