Easily implement type inference yourself
spotless-spots.blogspot.com/2009/01/type-infe...Posted Jan 4, 2009, 9:23 PM UTC
116
Posted Jan 4, 2009, 9:23 PM UTC
type inference is for the weak
The truely strong infer there own types! ;)
In Soviet Russia types infer YOU.
Slashdot is that way ---->
It's a bit funny that no one turns this kind of stuff into an accessible package that can be used by us software developers. But maybe that's all right and computing scientists need a just to live with their sequent notation in ASCII art.
Did you see "here's my solution"?
It is for language developers rather than software developers.
Unfortunately, details of inference depend strongly on exactly what your type system is and there is no (as far as I know) notation for type systems which works like grammars for syntax.
Now, if your type system is such that the basic Hindley-Milner algorithm will do (no subtyping or overloading, for a start), it's pretty simple to implement.