Explaining Type Inference (1995)
| Venue: | Science of Computer Programming |
| Citations: | 52 - 0 self |
BibTeX
@INPROCEEDINGS{Duggan95explainingtype,
author = {Dominic Duggan and Frederick Bent},
title = {Explaining Type Inference},
booktitle = {Science of Computer Programming},
year = {1995},
pages = {37--83}
}
Years of Citing Articles
OpenURL
Abstract
Type inference is the compile-time process of reconstructing missing type information in a program based on the usage of its variables. ML and Haskell are two languages where this aspect of compilation has enjoyed some popularity, allowing type information to be omitted while static type checking is still performed. Type inference may be expected to have some application in the prototyping and scripting languages which are becoming increasingly popular. A difficulty with type inference is the confusing and sometimes counter-intuitive diagnostics produced by the type checker as a result of type errors. A modification of the Hindley-Milner type inference algorithm is presented, which allows the specific reasoning which led to a program variable having a particular type to be recorded for type explanation. This approach is close to the intuitive process used in practice for debugging type errors. 1 Introduction Type inference refers to the compile-time process of reconstructing missing t...







