[plt-scheme] Re: Poacher turned gamekeeper

From: Laurent (laurent.orseau at gmail.com)
Date: Thu Nov 12 07:51:51 EST 2009

"instead of crashing when a non-number string is given, return a special
value that says there is something wrong" ?
That may be an introduction to error-handling, which is a big part of
programming?

On Thu, Nov 12, 2009 at 12:42, wooks <wookiz at hotmail.com> wrote:

>
>
> On Nov 12, 11:32 am, "Geoffrey S. Knauth" <ge... at knauth.org> wrote:
> > On Nov 12, 2009, at 05:44, wooks wrote:
> >
> > > On Nov 9, 2:50 pm, Matthias Felleisen <matth... at ccs.neu.edu> wrote:
> > >> 1. Use HtDP/2e to get started. Then switch.
> > > So I'm looking at it and wondering how to explain why (string->number
> > > "hello world") returns a boolean.
> >
> > My documentation for beginner language says:
> >
> > string->number : (string -> (union number false))
> >
> > Purpose: to convert a string into a number, produce false if >impossible
> >
>
> Yes I saw that. I was hoping be able to give a different answer than
> "thats the way it was defined".
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20091112/16229345/attachment.html>

Posted on the users mailing list.