R. Kent Dybvig
dyb at cs.indiana.edu
Sat Mar 21 13:29:21 EDT 2009
> > The R6RS states string->number NEVER raises an exception and ALWAYS returns
> > a number or #f.
> > Does that mean even if one passes a non-string and/or an invalid radix (not
> > a number or not 2/8/10/16) it should return #f?
> Yes. This was discussed at some length among the editors, for example,
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.
More information about the r6rs-discuss