In practice, Haskell has global type-class uniqueness. That's not the only reason Haskell type-classes are superior.https://www.youtube.com/watch?v=hIZxTQP1ifo …
Have you seen the attempts at a type-class hierarchy in Scala? Do you see any "practical use" issues with them? Why have they not been fixed? Can they be fixed?
-
-
I don't have the knowledge required to answer these questions intelligently. But I don't think I need to - they are a specific implementation, which you argue is flawed. What if I implemented a very simple Show type class, no variance, no subtyping, no bells and whistles?
-
Your argument is that it wouldn't be a valid type class. My argument is that if you don't require global instance uniqueness, I don't understand why. My following up argument is that if you do, GHC doesn't guarantee global instance uniquess either.
- Show 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.