On Tue, Dec 14, 2010 at 9:04 PM, 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.


For quite a few good reasons, the most important being that it makes Rich
Hickey's life a lot easier, and ours as well as a result of that.

Best to read over the very, very long thread on the subject.

David

-- 
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