[plt-scheme] Error...

From: Chongkai Zhu (mathematica at citiz.net)
Date: Wed Dec 14 11:13:59 EST 2005

I just wonder why not to define error based on call/cc.

Call/cc is part of R5RS, and it enables you to escape the current context, isn't it?

>On Dec 14, 2005, at 8:16 AM, Matthias Felleisen wrote:
>
>>  (define (error str) (display str) (newline) (/ 1 0) (car '()) (5  
>> (lambda (x) (x x))))
>
>See also: SRFI-23 at
>
>    http://srfi.schemers.org/srfi-23/srfi-23.html
>
>It's basically the semi-standardized version of this, but there's  
>lots of discussion and so on that could be useful.
>
>-jacob
>_________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>



Posted on the users mailing list.