3 ms·
I don't understand this objection. OCaml does full program inference. I just prefer to wrap things into modules from time to time. That's a pragmatic choice I m
by GregarianChild 6y ago
I don't understand this objection. OCaml does full program inference. I just prefer to wrap things into modules from time to time. That's a pragmatic choice I make, not a restriction on type-inference.
Aside, when I decide to change where I put module boundaries, full program inference helps too: I just throw away the old module definitions, draw different boundaries and re-run inference.
- chrisseaton 6y agoI'm not objecting to anything. This is how I thought most people used inference in OCaml.
- amw-zero 6y agoYou do need to write the types for records though.