by pjmlp · 1y ago · 0 comments
https://rmod-files.lille.inria.fr/Team/Texts/Papers/Blac03a-...
Traits as CS concept, are part of OOP paradigm.
The whole FP vs OOP distinction does make little sense these days, as it has mostly been shown that each concept from the one can neatly fit within the other and vice versa.
Reverse Uno!
https://www.haskellforall.com/2013/02/you-could-have-invente...
And someone called Samuel the Bloggy Badger happens to have another blog posts on how comonads are really more like neighborhoods:
https://gelisam.blogspot.com/2013/07/comonads-are-neighbourh...
...so it might all just be a scam!
The only big difference is how implementation is mapped into the trait specification.
"Classes, Jim, But Not as We Know Them — Type Classes in Haskell: What, Why, and Whither"
https://www.microsoft.com/en-us/research/publication/classes...
"Adventure with Types in Haskell"
https://www.youtube.com/watch?v=6COvD8oynmI
https://www.youtube.com/watch?v=brE_dyedGm0
On the first lecture he discusses how Haskell relates to OOP in regards of subtyping and generic polymorphism and how although different on the surface they share those CS concepts in their own ways.