|
|
|
|
|
by mikekchar
3505 days ago
|
|
You're way more experienced than me in this, but it seems to me that anywhere you're going to be replacing polymorphism is going to result in more typing. If you know the module that you want, then it is trivial, but the point of type classes (IIUC) is to write generic functions that can act on a variety of types. To replace the non-trivial cases is going to require pattern matching, it seems. If your types change, then you are going to have to update things in multiple places. But, like you said, it's not the end of the world. In many cases the intent will probably be clearer. Still, I'd rather have type classes than not. |
|