4 ms·
Ocaml has both! You have a (very powerful) module system, serving purposes of encapsulation and namespacing, and other more powerful abstractions, and you also
by andrepd 8y ago
Ocaml has both! You have a (very powerful) module system, serving purposes of encapsulation and namespacing, and other more powerful abstractions, and you also have dynamic/message-passing style OOP available to you.
- jjtheblunt 8y ago...and no access to multicore processing that's been ubiquitous for over a decade?
- atombender 8y agoDoes anyone actually use the OO stuff? Last I checked, the consensus was that it was a failure and that it should be avoided in modern OCaml.
- codesmythe 8y agoA question: can OCaml’s object system be used to implement a runtime similar to that of Objective-C (things like obj_msgsend)? Or does OCaml’s type system impose restrictions that prevent this level of dynamic operation?