[r6rs-discuss] R5.95 questions

From: John Cowan <cowan>
Date: Tue, 26 Jun 2007 14:58:46 -0400

R. Kent Dybvig scripsit:
> > The wisdom of this move is also open to question.
> > Inasmuch as the second argument is inexact, its
> > integer object-ness is likely to be accidental.
>
> This is precisely why I have always believed that integer? should return
> false for all inexact values.

That strikes me as irrational. When handed an inexact number, Scheme
procedures do their best: they return 4.0 as the sum of 2.0 and 2.0,
and #t as the value of the integral property of 4.0.

-- 
John Cowan   cowan at ccil.org    http://ccil.org/~cowan
Original line from The Warrior's Apprentice by Lois McMaster Bujold:
"Only on Barrayar would pulling a loaded needler start a stampede toward one."
English-to-Russian-to-English mangling thereof: "Only on Barrayar you risk to
lose support instead of finding it when you threat with the charged weapon."
Received on Tue Jun 26 2007 - 14:58:46 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC