I copy that. FWIW, I'm not in the eval-is-evil camp, so didn't have an opinion one way or the other. I've seen code like that in posted samples and wanted to know if that's a technique useful to have around.
On Apr 14, 9:34 am, David McNeil <mcneil.da...@gmail.com> wrote: > > Will this be any > > better or worse: (defn m [f s] (fn [] (map f s))) then doing (foo) > > instead of (eval foo)? > > Armando - Generally I agree that the "m" function you defined is > clearly preferred over a solution based on eval. However, this is a > special case (too much to relate) where I needed a function to produce > an s-expression. > > Thanks. > -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