On Tue, 14 Dec 2010 21:04:11 -0500
Ken Wesson <kwess...@gmail.com> wrote:

> On Tue, Dec 14, 2010 at 8:23 PM, Benny Tsai <benny.t...@gmail.com> wrote:
> > As Brian said, primitive math is now the default in 1.3.  If auto-
> > promotion on overflow is desired, you can use the +', -', *', inc',
> > dec' functions (note the single quote suffix).
> 
> Why was this done? I preferred having +, -, etc. DTRT in general and
> unchecked-+, etc. for when you really needed efficient primitive math.
> My code is littered with + but has few unchecked-+s. Which means I'll
> have to go through it all adding little tick-marks everywhere and
> making the math look funny to keep its behavior the same whenever 1.3
> is released.

One of the things those of us on your side *begged* for (and
apparently also didn't get) was that the versions with correct
behavior not have second-class names. That we didn't get them means
we'll have to provide them ourselves, but it's easy. Since we're
having to fix code anyway, just use a file containing something like:

(def add +')
(def sub -')
(def mul *')
(def add1 inc')
(def sub1 dec')

when you need it.

     <mike
-- 
Mike Meyer <m...@mired.org>             http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to