3 ms·
The nice thing about OCaml (and its MS cousin F#) is that it's a hybrid language. Know FP? Fine, you can code that way. Know OO? Fine, you can code that way. It
by DanielBMarkham 8y ago
The nice thing about OCaml (and its MS cousin F#) is that it's a hybrid language. Know FP? Fine, you can code that way. Know OO? Fine, you can code that way. It meets you where you are.
- int_19h 8y agoI 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).