News for hackers. Stuff that matters.
Re:Hindley-Milner Type Inference (2012) by azhenley on Friday July 10, 2020 @03:49PM (#23795613)
Interesting that you say that. I come from a very different background but have always that thought type inference hurts the readability of code and should be used sparingly.

I wrote up the thoughts in a post [1] that seemed to get extreme reactions from both camps [2].

[1] Type inference has usability problems. http://web.eecs.utk.edu/~azh/blog/typeinference.html

[2] HN discussion. https://news.ycombinator.com/item?id=20296123

Re:Hindley-Milner Type Inference (2012) by eru on Saturday July 11, 2020 @12:39AM (#23799548)
Careful, there are multiple ways to use type inference.

In practice, many people use type inference when exploring and writing code; but then add explicit annotations for readability and documentation. You could even do the last step automatically.