Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zeckalpha
· 8y ago · 0 comments
That’s exactly what I mean. They find no need for modules when you have classical inheritance.
Comments
[–]
ihm
8y ago
Using 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
OP
8y ago
Yikes, the OCaml I worked on must be pretty unusual then.
[–]
jon_smark
8y ago
Quite on the contrary: The OO part of OCaml is hardly used at all in the wild!