[plt-scheme] guido on tail recursion

From: Henk Boom (henk at henk.ca)
Date: Sat Apr 25 18:43:40 EDT 2009

2009/4/25 Joe Marshall <jmarshall at alum.mit.edu>:
> Yes.  There are recursive programs that cannot be expressed as iteration.
> In fact, the set of programs that can be expressed with iteration is
> much smaller than the set of programs that can be expressed with
> recursion.  And it appears to be the case that if you can't express a program
> recursively, then you can't compute it at all (through any means!).
>
> So recursion is the most powerful tool we have.

I'm not sure I get what you're saying here, since a theoretical Turing
Machine can be expressed pretty simply as an iteration. Perhaps you
meant an iteration with a fixed set of fixed-size loop variables?

    Henk


Posted on the users mailing list.