Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
brianberns
· 6y ago · 0 comments
In F# (which is very similar to OCaml), you’d have to explicitly cast the return value to “obj” to get this to compile.
Comments
[–]
ohadrau
6y ago
Just 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).