Publikationsansicht

Programming with Dependently Typed Data Structures ∗ (2009)

Abstract
The mechanism for declaring datatypes in functional programming languages such as ML and Haskell is of great use in practice. This mechanism, however, often suffers from its imprecision in capturing various invariants inherent in data structures. The introduction of dependent datatypes in Dependent ML (DML) can partly remedy the situation, allowing the programmer to model data structures with significantly more accuracy. In this paper, we present several programming examples (e.g., implementations of random-access lists and red-black trees) to illustrate some practical use of dependent datatypes in capturing relatively sophisticated invariants in data structures. We claim that dependent datatypes can enable the programmer to implement algorithms in a manner that is more efficient, more robust and easier to understand. 1

Details der Publikation
Download http://citeseerx.ist.psu.edu/viewdoc/summary?doi=?doi=10.1.1.134.9883
Quelle http://www.cs.bu.edu/~hwxi/academic/papers/PwDTDS.pdf
Mitarbeiter CiteSeerX
Archiv CiteSeerX - Scientific Literature Digital Library and Search Engine (United States)
Typ text
Sprache Englisch
Verknüpfungen 10.1.1.41.548, 10.1.1.17.3839, 10.1.1.54.6229, 10.1.1.36.3970, 10.1.1.112.6665, 10.1.1.104.7428, 10.1.1.130.5375, 10.1.1.28.8835, 10.1.1.46.3529, 10.1.1.46.2171