News for hackers. Stuff that matters.
Re:Hindley-Milner Type Inference (2012) by chrisseaton on Friday July 10, 2020 @04:11PM (#23795861)
> let the compiler work out all types and put them in as module interface ... type annotations at abstraction boundaries

Right - that's not global type inference. It's intra-module type-inference.

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.
Re:Hindley-Milner Type Inference (2012) by amw-zero on Friday July 10, 2020 @07:09PM (#23797671)
You do need to write the types for records though.