[r6rs-discuss] string->number

leppie xacc.ide at gmail.com
Sat Mar 21 13:39:53 EDT 2009


From: "R. Kent Dybvig"

> I don't believe we ever intended string->number not to raise an exception
> if passed something other than a string or if passed, say, 18 arguments,
> the wording "never raises an exception" in its description
> notwithstanding.  So it seems to me that while (string->number "3/0") must
> return #f, (string->number 3) and (string->number) must raises exceptions.

Thanks, that's my feeling too.

In reference to the previous discussion, would it not be beneficial to let 
string->number have another optional boolean parameter to signify whether to 
raise exceptions or not?

Cheers

leppie




More information about the r6rs-discuss mailing list