Re:Hindley-Milner Type Inference (2012)
by AzzieElbab on Friday July 10, 2020 @04:07PM
(#23795813)
I do this on scala. Given scalac is much slower than ocaml compiler and inference is not as stellar. Regardless, explicit type annotations make code so much easier to read. Anonymous lambdas being an important exception
[ Parent
| on HN ]
The real footgun in Scala, to my mind, is implicits.
They are inferred, and that's the point of their ergonomics, but when they are inferred incorrectly, it becomes pretty confusing and sometimes cryptic.