Re:So you're learning OCaml
by dbaupp on Thursday October 22, 2015 @11:39AM
(#10432820)
Traits do a lot of what one can do with typeclasses (they're mostly just different names for the same thing), what differences are you thinking of?
Also, traits objects are existential types, and closures & functions are as first class as they are in Haskell (main difference is a bit more verbosity).
Also, traits objects are existential types, and closures & functions are as first class as they are in Haskell (main difference is a bit more verbosity).