chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Omit warning about exact fractions when as


From: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] Omit warning about exact fractions when asked for an inexact value
Date: Fri, 23 Mar 2012 10:43:58 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

Peter Bex scripsit:

> One question though: what is (string->number "#i1/0") supposed to return?
> I think +inf.0 is sane, but you could probably also make a case for #f.

I think +inf.0 is correct, though many Schemes do return #f.  

> Suggestion:  Improve the wording in string->number's description 

[details snipped]

Ticket #363 filed.  Note that string->number can still throw an exception
such as "out of memory".

-- 
John Cowan              http://www.ccil.org/~cowan      address@hidden
Would your name perchance be surname Puppet, given name Sock?
                --Rick Moen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]