|
|
|
|
|
by runT1ME
3404 days ago
|
|
>OOP is very powerful to organize the architecture of your code and capture very common patterns such as reusing an existing piece of five functionalities while overriding one (something that's still awful to achieve in FP, regardless of the language you pick). This is not true, ad hoc polymorphism works fine without subtype polymorphism. |
|
Show me an example of a type class with five functions and then how I can reuse it while overriding one of these five.