On Wed, Sep 23, 2009 at 09:25:20AM -1000, Shiro Kawai wrote: > I would rather prefer an implemenation returning answers as precise > as possible by default, and having an option to trade precision > for speed when necessary. That is, implicit fixnum to bignum coercion > by default, and some option that switches the mode to fixnum to flonum > coercion. Same as exact rationals.
If I'm dealing with integers, I really, really don't want them being coerced into flonums, because that means that my results are *wrong*. If we're talking about modes where there is not implicit promotion to bignums (and that's useful, because sometimes time and space are important constraints), I'd like another mode that raised an exception on fixnum overflow, so that my program could stop nicely (and perhaps be debugged.) Cheers, -- Andrew _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
