Two reasons type classes are superior to OOP-style interfaces: 1. You can define instances for 3rd party data types 2. You can use the same data but different logic Type classes decouple capabilities from both types and data, giving you increased flexibility and power.
-
-
You can define OOP to be whatever you want. Doesn’t make it useful or correct, however.
-
Too many people have defined "OOP" to mean a lot of bullshit. But if you argue against "OOP" by strawmanning it to the worst definition rather than steelmanning it to the best, then you're not actually establishing much.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!