|
|
|
|
|
by sifoobar
2695 days ago
|
|
The post drew a line between OOP and FP; for that line to mean anything, polymorphism would have to go with OOP. Which is what I meant by raw FP. And solving the same kind of problems without polymorphism (be that multiple dispatch, type classes or otherwise), is a struggle. |
|
Protocols or typeclasses are also ways to implement functionality over (usually) immutable data. I don't see the relation to a mutable object with a closed set of methods defined at compile time.