On Thu, Sep 27, 2012 at 12:10 PM, Tim Brown <tim.br...@cityc.co.uk> wrote:There is none: http://docs.racket-lang.org/reference/number-types.html?q=zero%3F#%28...
> What is the difference in correctness between "(= x 0)" vs. "(zero? x)"?
> And given a choice of (eq? 0 x), (= 0 x) and (zero? x), which(= 0 x) and (zero? x) should compile to the same code.
> would, and which should take the shortest time to perform 10^12 times?
(eq? 0 x) produces simpler code, because:
(= 0 0.0) => #t, but (eq? 0 0.0) => #f.
For actual performance numbers, as opposed to reasoning from
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.