3 ms·
If you use a powerful type system like Ocamls's, your can make many error states unrepresentable. This is basically impossible to do in Java. Moreover, in OCam
by bgorman 6y ago
If you use a powerful type system like Ocamls's, your can make many error states unrepresentable. This is basically impossible to do in Java.
Moreover, in OCaml it is idiomatic to use type inference everywhere except for interface files, so in practice you almost never annotate types.