3 ms·
Not in OCaml. You can have a function like that: let printAge object = print object.age And it'll just check if anything passed to printAge has a field "age".
by cube2222 9y ago
Not in OCaml. You can have a function like that:
let printAge object = print object.age
And it'll just check if anything passed to printAge has a field "age".