3 Apr 2007 10:57
if it's now or never, the delay monad will tell you later
Sebastian Hanowski <seha <at> informatik.uni-kiel.de>
2007-04-03 08:57:33 GMT
2007-04-03 08:57:33 GMT
Hello Josh Burdick,
* Am 29.03.07 schrieb Josh Burdick:
> I have a question about an idea for adding "almost" a fixpoint to
> an otherwise strongly-normalizing language. I'm going to write CC here
> to mean the Calculus of Constructions (without inductive types), but I
> think the idea is relevant to Epigram, since it's strongly normalizing.
>
> CC relies on strong normalization for its soundness, so you
> can't just toss an axiom like
>
> fix : forall T. (T -> T) -> T
The epigram programming language not only eschews general recursion to
keep the logic of the type system sound. It was a /design decision/ by
McBride/McKinna
http://foundations.cs.ru.nl/chitchat/slides/chit-swierstra.pdf
to default to structural recursion since the novel kind of interaction
the epigram system provides during program development relies on the
decidability of the type checking relation. Which get's lost if you
allow possibly non-terminating computations in types, as for example
Lennart Augustsson's cayenne language did.
Conor McBride usually suggests to have fix as an axiom sans
computational behaviour during type checking to answer demands for
general recursion.
http://www.haskell.org/pipermail/haskell/2004-August/014405.html
(Continue reading)
RSS Feed