On Feb 10, 2009, at 8:34 PM, Timothy Pratley wrote:

I spoke too soon. Apparently from the Lisp HyperSpec
mod performs the operation floor on number and divisor and returns the
remainder of the floor operation.
Which would indicate that mod1 is not consistent with LISP.
Seeing Java doesn't have a proper mod, it would seem sensible to
follow the LISP/Ruby/Python convention...

I agree.

Absent some compelling reason to the contrary, I think it would be a wise policy for Clojure to defer to Common Lisp in cases like this. Those behaviors have been pored over for years by really smart people-- not a guarantee of correctness, of course, but the probability is really high.

The fact that apparently we can also simultaneously include the really smart folks who've been refining Python and Ruby for years is a great bonus.

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to