Phantom Types and Subtyping

Computer Science – Programming Languages

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

41 pages. Preliminary version appears in the Proceedings of the 2nd IFIP International Conference on Theoretical Computer Scie

Scientific paper

We investigate a technique from the literature, called the phantom-types technique, that uses parametric polymorphism, type constraints, and unification of polymorphic types to model a subtyping hierarchy. Hindley-Milner type systems, such as the one found in Standard ML, can be used to enforce the subtyping relation, at least for first-order values. We show that this technique can be used to encode any finite subtyping hierarchy (including hierarchies arising from multiple interface inheritance). We formally demonstrate the suitability of the phantom-types technique for capturing first-order subtyping by exhibiting a type-preserving translation from a simple calculus with bounded polymorphism to a calculus embodying the type system of SML.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Phantom Types and Subtyping does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Phantom Types and Subtyping, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Phantom Types and Subtyping will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-678557

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.