Modules are structurally typed; you can cast a module instance to any module type it conforms to - the comparison to java seems unfair.
-
-
-
Ok, so OCaml modules are slightly better than Java classes in this way, while being miles behind Java (not to speak about better languages) in lacking usable inheritance, definition override and specialization, method combinations, etc.
- 1 more reply
New conversation -
-
-
Does that have other names than ‘exheritance’?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!