Dependent Types
Epigram is essentially a typed lambda calculus with generalized algebraic data type extensions, except for two extensions. First, types are first-class entities, of type ; types are arbitrary expressions of type, and type equivalence is defined in terms of the types' normal forms. Second, it has a dependent function type; instead of, where is bound in to the value that the function's argument (of type ) eventually takes.
Full dependent types, as implemented in Epigram, are a powerful abstraction. (Unlike in Dependent ML, the value(s) depended upon may be of any valid type.) A sample of the new formal specification capabilities dependent types bring may be found in The Epigram Tutorial.
It is planned that the forthcoming version of Epigram, Epigram 2, will be based on Observational Type Theory, a new development of constructive type theory.
Read more about this topic: Epigram (programming Language)
Famous quotes containing the words dependent and/or types:
“The more we learn of science, the more we see that its wonderful mysteries are all explained by a few simple laws so connected together and so dependent upon each other, that we see the same mind animating them all.”
—Olympia Brown (18351900)
“The American man is a very simple and cheap mechanism. The American woman I find a complicated and expensive one. Contrasts of feminine types are possible. I am not absolutely sure that there is more than one American man.”
—Henry Brooks Adams (18381918)