5 ms·
No, OCaml has an object system, but it is an uncommonly used complement to the module system.
by octachron 9y ago
No, OCaml has an object system, but it is an uncommonly used complement to the module system.
- zeckalpha 9y agoThat’s exactly what I mean. They find no need for modules when you have classical inheritance.
- ihm 9y agoUsing the object system in OCaml is super rare in my experience and using modules to structure code is way more common. They are also two somewhat orthogonal features of the type system: objects don't contain types, they are just values.
- zeckalpha 9y agoYikes, the OCaml I worked on must be pretty unusual then.
- jon_smark 9y agoQuite on the contrary: The OO part of OCaml is hardly used at all in the wild!