ACM Home Page
Please provide us with feedback. Feedback
Finding the source of type errors
Full text PdfPdf (619 KB)
Source Annual Symposium on Principles of Programming Languages archive
Proceedings of the 13th ACM SIGACT-SIGPLAN symposium on Principles of programming languages table of contents
St. Petersburg Beach, Florida
Pages: 38 - 43  
Year of Publication: 1986
Author
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 5,   Downloads (12 Months): 30,   Citation Count: 31
Additional Information:

abstract   references   cited by   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/512644.512648
What is a DOI?

ABSTRACT

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.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
{Boyer &amp; Moore 72} Boyer, R. S., and Moore, J. S. "The Sharing of Structure in Theorem-Proving Programs," in <i>Machine Intelligence 7</i> (B. Meltzer &amp; D. Michie, eds), Edinburgh University Press (1972), 101--116.
 
2
{Friedman <i>et al.</i> 84} Friedman, D. P., Haynes, C. T., Kohlbecker, E., and Wand, M. "The Scheme 84 Reference Manual" Indiana University Computer Science Department Technical Report No. 153 (March, 1984; revised, June, 1985).
3
 
4
{Milner 78} Milner, R. "A Theory of Type Polymorphism in Programming," <i>J. Comp. &amp; Sys. Sci. 17</i> (1978), 348--375.
5

CITED BY  31