3 ms·
...and my impression is that FP and OOP are complementary rather than mutually exclusive. But I only have basic understanding of FP.
by huherto 17y ago
...and my impression is that FP and OOP are complementary rather than mutually exclusive. But I only have basic understanding of FP.
- eru 17y agoYes. Alas, most of the automagic type inferences we are used to in FP languages (Hindley-Milner) does not play too nice with OOP's class members.
- stcredzero 17y agoWhat if class members had to be typed?
- jongraehl 17y agoThey are (in Scala). I think it's overloading (punning on static type of the same function, operator, or method name) that makes explicit type declarations more often necessary in Scala than in Haskell or ML.