5 ms·
Logically, closed extension and open extension are different things. OO conflates them together for no reason other than having the polymorphic dispatch hammer.
by pacala 12y ago
Logically, closed extension and open extension are different things. OO conflates them together for no reason other than having the polymorphic dispatch hammer. FP equivalents for polymorphic dispatch are pattern matching for closed extension and plain old first class functions for open extension.