equality predicates (was Re: [plt-scheme] fractions and decimals)

From: Doug Orleans (dougo at ccs.neu.edu)
Date: Tue Jan 28 10:33:45 EST 2003

Robert Bruce Findler writes:
 > Actually, I think that integer? is, but positive? isn't:
 >   Welcome to MzScheme version 203.2, Copyright (c) 1995-2003 PLT
 >   > (integer? #f)
 >   #f
 >   > (positive? #f)
 >   positive?: expects argument of type <real number>; given #f

Oops, you're right, `number?', `complex?', `real?', `rational?', and
`integer?' are all general predicates.  Maybe I was thinking of
`exact?'.  This will simplify some of my code...

--dougo at ccs.neu.edu

Posted on the users mailing list.