3 ms·
In F# (which is very similar to OCaml), you’d have to explicitly cast the return value to “obj” to get this to compile.
by brianberns 6y ago
In F# (which is very similar to OCaml), you’d have to explicitly cast the return value to “obj” to get this to compile.
- ohadrau 6y agoJust to clarify to people not familiar with the two languages and their differences, this is somewhere where the two languages diverge greatly. OCaml does not have an "obj" type that we can cast to (and in general casts are quite rare).