Does Unison has typeclasses? Are they viable/useful in Unison? #4192
-
Hi 👋 Is there any equivalent to Haskell typeclasses or ad-hoc polymorphism in Unison? Thank you!! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Typeclasses themselves will likely not be implemented directly in Unison, although some equally powerful form of polymorphism will be at some point. Although they are not yet on the roadmap you can see some of the planning work in these issues: #502 and #3845 |
Beta Was this translation helpful? Give feedback.
-
Elaborating slightly on @RolfNic's answer, the FAQ has a discussion of this:
That also links to this post, which has this discussion:
|
Beta Was this translation helpful? Give feedback.
-
Also this old ticket has a bunch of discussion and ideas: #502 |
Beta Was this translation helpful? Give feedback.
Typeclasses themselves will likely not be implemented directly in Unison, although some equally powerful form of polymorphism will be at some point. Although they are not yet on the roadmap you can see some of the planning work in these issues: #502 and #3845