On Dec 15, 10:05 am, Ken Wesson <kwess...@gmail.com> wrote: > On Wed, Dec 15, 2010 at 12:52 PM, Mike Meyer > > <mwm-keyword-googlegroups.620...@mired.org> wrote: > > 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') > > I'd much rather exclude +, -, etc. when importing core and then (def + > +'), etc. and (def unchecked-+ clojure.core/+) etc. > > Of course that adds enough boilerplate to the code to make me want to > write a my-ns macro that passes most of its arguments through to ns > but does all of the above as well. > > And still leaves me no way to get the old unchecked-+ speed and > behavior (wrap on overflow rather than compare-and-branch then throw). > I can only hope the branch prediction in modern CPUs will mostly > prevent the speed loss from this change.
This was one of the stated features of the new release: user=> *clojure-version* {:major 1, :minor 3, :incremental 0, :qualifier "alpha4"} user=> (doc *unchecked-math*) ------------------------- clojure.core/*unchecked-math* While bound to true, compilations of +, -, *, inc, dec and the coercions will be done without overflow checks. Default: false. -Jason -- 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