News for hackers. Stuff that matters.
Re:Typed, modular macros for OCaml by int_19h on Saturday November 26, 2016 @05:16PM (#13046222)
Oh, and the other neat thing is that OCaml cleanly separates subtyping and inheritance. In other words, in OCaml, class inheritance is for implementation reuse only, and is completely orthogonal to subtyping. In many common cases (similar to Java etc) inheritance does produce a subtyping relationship in practice; but because of this decoupling, you don't get one shoehorned onto your classes when you just want the other.

There are no comments on this comment yet.