Re:Hindley-Milner Type Inference (2012)
by GregarianChild on Friday July 10, 2020 @04:18PM
(#23795958)
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.
Re:Hindley-Milner Type Inference (2012)
by chrisseaton on Friday July 10, 2020 @04:21PM
(#23795988)
I'm not objecting to anything. This is how I thought most people used inference in OCaml.
Right - that's not global type inference. It's intra-module type-inference.