ComputingComputer ScienceAlgorithmsFormal MethodsProgramming LanguagesData TypesError DetectionType CheckingType SystemsAutomated Bug FindingPolymorphic Type SystemsRuntime Type CheckingStatic Type CheckingType AnalysisType Error ReportingType Inference
It is a truism that most bugs are detected only at a great distance from their source. Although polymorphic type-checking systems like those in ML help greatly by detecting potential run-time type errors at compile-time, such systems are still not very helpful for locating the source of a type error. Typically, an error is reported only when the type-checker can proceed no further, even though the programmer's actual error may have occurred much earlier in the text. We describe an algorithm which appears to be quite helpful in isolating and explaining the source of type errors. The algorithm works by keeping track of the <i>reasons</i> the checker makes deductions about the types of variables.
3
A theory of type polymorphism in programming
Robin Milner · Journal of Computer and System Sciences · 1978 · 2.2K citations · Full text
A Metalanguage for interactive proof in LCF
Mike Gordon, R. Milner, L. Morris et al. · 1978 · 127 citations · Full text
Mitchell Wand · 1984 · 61 citations