There are so many different ways to get ad-hoc polymorphism. Type classes (Haskell), traits (Rust), modular implicits (proposed for OCaml), static dispatch (C++)... and probably many others. Anyone have recommendations for reading about the (likely subtle) differences?
-
Show this thread
Replying to @shwestrick
I wrote about how ad-hoc polymorphism is a special case of name resolution: https://willcrichton.net/notes/specificity-programming-languages/ … Thinking about ad-hoc polymorphism as "type-directed name resolution" has been really clarifying for me.
12:30 PM - 11 Dec 2020
0 replies
0 retweets
3 likes
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.
cognitive psychology. PhD