Well the evil thing is that apply-macro evaluates arguments at compile time. Example where this won't work follows
(defn foo [numbers] (apply-macro + numbers)) JW On Mon, Feb 24, 2014 at 10:27 AM, 刘家财 <jiacai2...@gmail.com> wrote: > I have one problem using Clojure > we all know there is a apply for a fn to prepend intervening arguments to > args. > such as (apply + [2 3]) will equals to (+ 2 3) > this is really handy, > BUT,this is no apply-macro fn to use,I find a contrib( > https://github.com/clojure/clojure-contrib/blob/73accf597eafb8dfcb642702a3b98b057bbdbbdf/src/main/clojure/clojure/contrib/apply_macro.clj#L34) > which has somethine like this,but deprecated. > and says it is evil,I can't understand why the docs says it was evil? > Is there anything harmful? Can someone show me some examples? > Thank U > > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.