pith. sign in

arxiv: cs/0510074 · v1 · submitted 2005-10-24 · 💻 cs.PL

Practical Datatype Specializations with Phantom Types and Recursion Schemes

classification 💻 cs.PL
keywords datatypespecializationsinvariantsphantomtypescapturescaseconvenient
0
0 comments X
read the original abstract

Datatype specialization is a form of subtyping that captures program invariants on data structures that are expressed using the convenient and intuitive datatype notation. Of particular interest are structural invariants such as well-formedness. We investigate the use of phantom types for describing datatype specializations. We show that it is possible to express statically-checked specializations within the type system of Standard ML. We also show that this can be done in a way that does not lose useful programming facilities such as pattern matching in case expressions.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.