3 ms·OCaml's object types solve exactly this problem. And they have been around since Caml became OCaml.by yawaramin 3y agoOCaml's object types solve exactly this problem. And they have been around since Caml became OCaml.