> > 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, > here:
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. Kent _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
