Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

Explaining type errors in polymorphic languages

Explaining type errors in polymorphic languages Explaining Type Errors In Polymorphic Languages MIKE BEAVEN Purdue University and RYAN STANSIFER University of North Texas Strongly-typed languages present programmers with compile-time feedback about the type correctness of programs. Errors during polymorphic type checking take the form of a unification failure for two types. Finding the source of the type error in the code is often difficult because the error may occur far from the spot where the inconsistency is detected. As functional languages use more and more complex type systems, the difficulty of interpreting and locating these errors will increase, To locate the source of type errors the programmer must unravel the long chain of deductions and type instantiation made during type reconstruction. This paper describes an approach that maintains the deductive steps of type inference and the reasons for type instantiation. The approach could be used in an interactive system to guide the programmer to the source of a type error or to explain why the compiler assigned a particular type to an expression. Engineering]: Programming EnvironCategories and Subject Descriptors: D.2.6 [Software Languages]: Language Constructs and Features ”data types and ments: D.3.3 [Programming structures: F.3.3 [Logics and Meanings of Programs]: Studies of Program Constructed ”type http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png ACM Letters on Programming Languages and Systems (LOPLAS) Association for Computing Machinery

Explaining type errors in polymorphic languages

Loading next page...
 
/lp/association-for-computing-machinery/explaining-type-errors-in-polymorphic-languages-wDKz22R09h

References (11)

Publisher
Association for Computing Machinery
Copyright
Copyright © 1993 by ACM Inc.
ISSN
1057-4514
DOI
10.1145/176454.176460
Publisher site
See Article on Publisher Site

Abstract

Explaining Type Errors In Polymorphic Languages MIKE BEAVEN Purdue University and RYAN STANSIFER University of North Texas Strongly-typed languages present programmers with compile-time feedback about the type correctness of programs. Errors during polymorphic type checking take the form of a unification failure for two types. Finding the source of the type error in the code is often difficult because the error may occur far from the spot where the inconsistency is detected. As functional languages use more and more complex type systems, the difficulty of interpreting and locating these errors will increase, To locate the source of type errors the programmer must unravel the long chain of deductions and type instantiation made during type reconstruction. This paper describes an approach that maintains the deductive steps of type inference and the reasons for type instantiation. The approach could be used in an interactive system to guide the programmer to the source of a type error or to explain why the compiler assigned a particular type to an expression. Engineering]: Programming EnvironCategories and Subject Descriptors: D.2.6 [Software Languages]: Language Constructs and Features ”data types and ments: D.3.3 [Programming structures: F.3.3 [Logics and Meanings of Programs]: Studies of Program Constructed ”type

Journal

ACM Letters on Programming Languages and Systems (LOPLAS)Association for Computing Machinery

Published: Mar 1, 1993

There are no references for this article.