On Tue, Sep 15, 2015 at 12:25 PM, Ville M. Vainio <[email protected]> wrote:
> You may want to read up on Hindley-Milner type infererence. Here seems to > be a Python implementation: > > > http://smallshire.org.uk/sufficientlysmall/2010/04/11/a-hindley-milner-type-inference-implementation-in-python/ > Thanks for this link! It will do double duty as a test of knowledge-enhancing techniques. Assuming that I finally understand it, it will show how HM actually works. BTW, I've never found a comprehensible explanation of HM, so this is a "real" test. Both the actual code and the input data are small, which cuts down on the drudgery and improves focus. Apparently MyPy has type inference as well. > Yes. I was thinking of this when I said "I expect that good work is coming regarding type inference in Python." As you know, pep 484 <https://www.python.org/dev/peps/pep-0484/> is inspired by mypy. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
