|
|
|
|
|
by c_shu
3385 days ago
|
|
One of the common nice features in OOP is polymorphism. You have a list/set/collection of objects which are of the same type, but also of different subtypes. They have the same behavior when calling some method and different behaviors when calling another method. OOP is not a failure. But overengineering is another thing. (Sometimes I heard "Never write static function/method! Do it in OOP way!", though it doesn't make the code simpler or cleaner) |
|
In contrast, most (typed) FP languages support typeclasses / traits, which makes a lot of code considerably simpler.