Title of article :
Pragmatic Subtyping in Polymorphic Languages
Author/Authors :
Nordlander، Johan نويسنده ,
Issue Information :
روزنامه با شماره پیاپی سال 1999
Pages :
-215
From page :
216
To page :
0
Abstract :
We present a subtyping extension to the Hindley/Milner type system that is based on name inequivalence. This approach allows the subtype relation to be defined by incremental construction of polymorphic records and datatypes, in a way that subsumes the basic type systems of both languages like ML and Java. As the main contribution of the paper, we describe a partial type inference algorithm for the extended system which favours succinctness over generality, in the sense that it never infers types with subtype constraints. The algorithm is based on an efficient approximating constraint solver, and is able to type a wide range of programs that utilize subtyping and polymorphism in a non-trivial way. Since constrained types are not inferred, the algorithm cannot be complete; however, we provide a completeness result w. r. t. the Hindley/Milner type system as a form of characterizing lower bound.
Keywords :
Haskell , differentiation , arithmetic , lazy semantics , derivatives
Journal title :
A C M Sigplan (Programming Languages) Sigplan Notices
Serial Year :
1999
Journal title :
A C M Sigplan (Programming Languages) Sigplan Notices
Record number :
16830
Link To Document :
بازگشت