[plt-scheme] 359.3

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sat Jan 6 13:28:31 EST 2007

On Jan 5, 2007, at 6:35 PM, John Clements wrote:

> I agree that the way that exception handlers replace others in tail  
> position is surprising.
>
> However, this solution seems to "have it all," in the sense that:
>
> - exception handlers can be chained, and
> - tail calls don't exhaust memory, even when an exception handler  
> is placed in the tail-calling procedure, and
> - if you want the non-overwriting behavior, you can alpha-expand  
> the thunk that is the second argument to call-with exception-handler.

Amen. (alpha -> eta)

-- Matthias



Posted on the users mailing list.