[plt-scheme] minor WHEN and UNLESS question

Eli Barzilay eli at barzilay.org
Sun Jul 6 04:38:30 EDT 2008


On Jul  6, Yavuz Arkun wrote:
> When you say "no expr is in tail position" and "destroy" do you mean
> that it won't be tail call optimized?

Yes.


> Because the infinite loop:
> 
> (let loop ()
>   (unless #f (loop))
> 
> seem to run happily forever without apparent GC, [...]

Right -- and the reason for that is that the implementation does *not*
follow the documentation.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!



More information about the plt-scheme mailing list