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