2 ms·
I would even argue that for OO, OCaml is a better object-oriented language than most dedicated OO languages. It nicely decouples classes from types, for example
by int_19h 8y ago
I would even argue that for OO, OCaml is a better object-oriented language than most dedicated OO languages. It nicely decouples classes from types, for example, so that the subclass diagram needs not correspond to the subtyping diagram (i.e. you can reuse code via inheritance without following LSP subtyping rules, but the type system will still prevent any unsafe use of such hierarchies).