[plt-scheme] Error...

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Dec 14 09:16:36 EST 2005

Yeap:

  (define (error str) (display str) (newline) (/ 1 0) (car '()) (5 
(lambda (x) (x x))))

Dopplet-gemoppelt haelt besser :-) -- Matthias


On Dec 14, 2005, at 9:11 AM, Paulo Jorge Matos wrote:

> I understand... however, I did not mention the context in which this
> question was made.
> My students have a project and I asked them to use R5RS to make them
> write as much scheme as possible (since the project is based on lists
> I did not want them to start requiring modules and srfis to do the
> project by them). However, I forgot (error ...) was not in R5RS and I
> was thinking about providing them a way to notice users of errors when
> they happen. It seems, they won't have much of a choice except maybe
> issuing a warning with display telling that something went wrong and
> the program will blow by itself... hummm... I'll have to think about
> it.
>
> Thanks anyway,
>
> Paulo Matos
>
> On 14/12/05, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
>> R5RS is _not_ a programming language. It is a minimalistic
>> recommendation for a family of programming languages. Your best best 
>> is
>> to write your program in a modular manner with one module for
>> collecting all non-R5RS functions.
>>
>> -- Matthias
>>
>>
>> On Dec 14, 2005, at 8:43 AM, Paulo Jorge Matos wrote:
>>
>>> Hi all,
>>>
>>> In a R5RS compliant program, what's the best way to tell a user an
>>> error occured? (error is not part of R5RS unfortunately).
>>>
>>> Cheers,
>>> --
>>> Paulo Jorge Matos - pocm at sat inesc-id pt
>>> Web: http://sat.inesc-id.pt/~pocm
>>> Computer and Software Engineering
>>> INESC-ID - SAT Group
>>> _________________________________________________
>>>   For list-related administrative tasks:
>>>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>>
>
>
> --
> Paulo Jorge Matos - pocm at sat inesc-id pt
> Web: http://sat.inesc-id.pt/~pocm
> Computer and Software Engineering
> INESC-ID - SAT Group



Posted on the users mailing list.