News for hackers. Stuff that matters.
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

Re:If statements considered harmful by joncampbelldev on Tuesday March 14, 2017 @05:23AM (#13866121)
perhaps I haven't felt your pain of rigid static designs because i mostly work in clojure, ymmv