ACM Home Page
Please provide us with feedback. Feedback
Searching for type-error messages
Full text PdfPdf (407 KB)
Source
Conference on Programming Language Design and Implementation archive
Proceedings of the 2007 ACM SIGPLAN conference on Programming language design and implementation table of contents
San Diego, California, USA
SESSION: Errors detected table of contents
Pages: 425 - 434  
Year of Publication: 2007
ISBN:978-1-59593-633-2
Also published in ...
Authors
Benjamin S. Lerner  University of Washington, Seattle, WA
Matthew Flower  University of Washington, Seattle, WA
Dan Grossman  University of Washington, Seattle, WA
Craig Chambers  University of Washington, Seattle, WA
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
ACM: Association for Computing Machinery
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 9,   Downloads (12 Months): 79,   Citation Count: 2
Additional Information:

abstract   references   cited by   index terms   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/1250734.1250783
What is a DOI?

ABSTRACT

Advanced type systems often need some form of type inference to reduce the burden of explicit typing, but type inference often leads to poor error messages for ill-typed programs. This work pursues a new approach to constructing compilers and presenting type-error messages in which the type-checker itself does not produce the messages. Instead, it is an oracle for a search procedure that finds similar programs that do type-check. Our two-fold goal is to improve error messages while simplifying compiler construction. Our primary implementation and evaluation is for Caml, a language with full type inference. We also present a prototype for C++ template functions, where type instantiation is implicit. A key extension is making our approach robust even when the program has multiple independent type errors.


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
 
2
K. Bernstein and E. Stark. Debugging type errors (full version). Technical report, State University of New York at Stony Brook, 1995.
3
 
4
O. Chitil, F. Huch, and A. Simon. Typeview: a tool for understanding type errors. In MMohnen and PKoopman, editors, 12th International Workshop on Implementation of Functional Languages, Aachner Informatik-Berichte, 2000.
 
5
V. Choppella and C.T. Haynes. Diagnosis of ill-typed programs. Technical Report 426, Indiana University, December 1994.
6
 
7
D. Duggan. Correct type explanation. In ACM SIGPLAN Workshop on ML, 1998.
 
8
 
9
 
10
 
11
B.J. Heeren. Top Quality Type Error Messages. PhD thesis, Universiteit Utrecht, The Netherlands, Sept. 2005.
12
 
13
Y. Jun, G. Michaelson, and P. Trinder. Explaining polymorphic types. The Computer Journal, 45(4):436--452, 2002.
 
14
15
16
 
17
 
18
B.J. McAdam. Repairing Type Errors in Functional Programs. PhD thesis, Laboratory for Foundatations of Computer Science, The University of Edinburgh, 2001.
19
20
21
22
23
 
24
L. Zolman. STLFilt: An STL error message decryptor for C++. http://www.bdsoft.com/tools/stlfilt.html, 2005.


Collaborative Colleagues:
Benjamin S. Lerner: colleagues
Matthew Flower: colleagues
Dan Grossman: colleagues
Craig Chambers: colleagues