2 ms·
Type classes are pretty orthogonal to FP as far as I can tell. It's probably more that it gives it a "Haskelly feel".
by bjz_ 12y ago
Type classes are pretty orthogonal to FP as far as I can tell. It's probably more that it gives it a "Haskelly feel".
- sixbrx 12y agoI think it's more than that - it's also that type classes allow a type of polymorphism that is not the subtyping polymorphism that mainstream OO depends so heavily on. ML attacks from a different direction with its parameterized modules, but with a similar result. That's why I feel like something's missing from F# in this regard, in comparison to other statically typed functional languages.