On Jun 21, 2010, at 13:40 , Tim Daly wrote:

> This debate happened many years ago for common lisp.
...
> Rich explicitly said he did not want this solution.
> 
> Tim Daly


it would be more or less trivial to make a macro that switches between non 
promoting + primitive loop and promoting and boxed loop:

(defmacro fast [body]
  `(let [+# +, *# *, -# -, loop# loop ...]
     (binding [+ +', * *', - -', loop loop' ...
                      +' +#, *' *#,-' +#, loop' loop# ...]
      ~...@body)))
;; NOT TESTED! Just a brainstorming

And of cause it would just work the same when the defaults were the other way 
round only would need to rename fast to safe or just-working or whatever is 
fitting.

It does not has to be part of c.core or c.contrib if Rich does not like it but 
it might very well be in every code if someone likes it for their little realm 
as I would.

Regards,
Heinz

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