[racket] typo in signatures?

From: Hendrik Boom (hendrik at topoi.pooq.com)
Date: Tue Oct 4 16:34:07 EDT 2011

On Tue, Oct 04, 2011 at 04:26:17PM -0400, Hendrik Boom wrote:
> On Tue, Oct 04, 2011 at 02:23:16PM -0400, Shriram Krishnamurthi wrote:
> > check-within
> > 
> > http://docs.racket-lang.org/test-engine/index.html#(def._((lib._test-engine/racket-tests..rkt)._check-within))
> 
> Yes.  That's exactly what students should be using ubstead of anything 
> that even looks like an equality-test.  The only time you'd want an 
> actual equality test on inexact numbers is whan you're using it 
> algorithmically instead of numerically, such as attaching a memo-pad to 
> a function on inexactt numbers.

Whoops.  Wrote too soon.  It's a check operation, not a boolean query.  
We need a three-argument comparison that returns a boolean for ordinary 
programming.

-- hendrik


Posted on the users mailing list.