Title of article
Correspondence Polymorphism for Object-Oriented Languages
Author/Authors
Rinat، Ran نويسنده , , Smith، Scott F. نويسنده , , Magidor، Menachem نويسنده ,
Issue Information
روزنامه با شماره پیاپی سال 1999
Pages
-166
From page
167
To page
0
Abstract
In this paper we propose a new form of polymorphism for object-oriented languages, called correspondence polymorphism. It lies in a different dimension than either parametric or subtype polymorphism. In correspondence polymorphism, some methods are declared to correspond to other methods, via a correspondence relation. With this relation, it is possible to reuse non-generic code in various type contexts-not necessarily subtyping or matching contexts-without having to plan ahead for this reuse. Correspondence polymorphism has advantages over other expressive object type systems in that programmer-declared types still may be simple, first-order types that are easily understood. We define a simple language LCP that reflects these new ideas, illustrating its behavior with multiple examples. We present formal type rules and an operational semantics for LCP, and establish soundness of the type system with respect to reduction.
Keywords
theoretical foundations , language design and implementation
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
17032
Link To Document