ACM Home Page
Please provide us with feedback. Feedback
Coercion and type inference
Full text PdfPdf (720 KB)
Source Annual Symposium on Principles of Programming Languages archive
Proceedings of the 11th ACM SIGACT-SIGPLAN symposium on Principles of programming languages table of contents
Salt Lake City, Utah, United States
Pages: 175 - 185  
Year of Publication: 1984
ISBN:0-89791-125-3
Author
John C. Mitchell  Bell Laboratories, Murray Hill, New Jersey
Sponsors
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
SIGADA: ACM Special Interest Group on Ada Programming Language
SIGAPL: ACM Special Interest Group on APL Programming Language
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 5,   Downloads (12 Months): 41,   Citation Count: 52
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/800017.800529
What is a DOI?

ABSTRACT

A simple semantic model of automatic coercion is proposed. This model is used to explain four rules for inferring polymorphic types and providing automatic coercions between types. With the addition of a fifth rule, the rules become semantically complete but the set of types associated with an expression may be undecidable. An efficient type checking algorithm based on the first four rules is presented. The algorithm is guaranteed to find a type whenever a type can be deduced using the four inference rules. The type checking algorithm may be modified so that calls to type conversion functions are inserted at compile time.


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
Barendregt, H.P, The Lambda Calculus: Its Syntax and Semantics. North Holland, 1981.
 
2
Barendregt, H., Coppo, M. and Dezani-Ciancaglini, M. A Filter Lambda Model and the Completeness of Type Assignment. J. Symbolic Logic (198?). to appear.
 
3
Curry, H.B and Feys, R. Combinatory Logic I. North-Holland, 1958.
4
5
 
6
Gordon, M.J., R. Milner and C.P. Wadsworth. Lecture Notes in Computer Science. Vol. 78: Edinburgh LCF. Springer-Verlag, 1979.
 
7
Hindley. R. The Principal Type-Scheme of an Object in Combinatory Logic. Trans. AMS 146 (1969). pp 29-60.
 
8
Hindley. R. The Completeness Theorem for Typing Lambda Terms. Theor. Comp. Sci. 22 (1983). pp 1-17.
 
9
Hindley, R. Curry's Type Rules Are Complete with Respect to the F-Semantics Too. Theor. Comp. Sci. 22(1983). pp 127-133.
10
 
11
MacQueen, D. Private Communication. 1983.
 
12
Meyer, A.R. What Is A Model of the Lambda Calculus?. Information and Control 52, 1 (1982). pp 87-122.
 
13
Milner. R. A Theory of Type Polymorphism in Programming. JCSS 17 (1978). pp 348-375.
14
 
15
Paterson, M.S. and Wegman, M.N. Linear Unification. JCSS 16 (1978). pp 158-167.
 
16
 
17
18
 
19
Scott, D. Data Types as Lattices. Siam J. Comput. 5, 3 (1976). pp 522-587.

CITED BY  52