Back to Search Start Over

Type Processing by Constraint Reasoning.

Authors :
Kobayashi, Naoki
Stuckey, Peter J.
Sulzmann, Martin
Wazny, Jeremy
Source :
Programming Languages & Systems (9783540489375); 2006, p1-25, 25p
Publication Year :
2006

Abstract

Herbrand constraint solving or unification has long been understood as an efficient mechanism for type checking and inference for programs using Hindley/Milner types. If we step back from the particular solving mechanisms used for Hindley/Milner types, and understand type operations in terms of constraints we not only give a basis for handling Hindley/Milner extensions, but also gain insight into type reasoning even on pure Hindley/Milner types, particularly for type errors. In this paper we consider typing problems as constraint problems and show which constraint algorithms are required to support various typing questions. We use a light weight constraint reasoning formalism, Constraint Handling Rules, to generate suitable algorithms for many popular extensions to Hindley/Milner types. The algorithms we discuss are all implemented as part of the freely available Chameleon system. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISBNs :
9783540489375
Database :
Complementary Index
Journal :
Programming Languages & Systems (9783540489375)
Publication Type :
Book
Accession number :
32908003
Full Text :
https://doi.org/10.1007/11924661_1