Ok, so I mailed off the above discussion without including any suggestions for alternative approaches... *fail*
Anyway, I think Joop's answer (especially the first code snippet) is *very* likely to be the best. As far as I can tell from reading the source, appengine-magic's query macro includes the filter expression in its expansion verbatim, so it will just be evaluated at run time. If you do want to play around with some super-flexible eval-based approaches, you might want to give Michael Fogus's highly enjoyable evalive library [1] a try -- it provides an aptly named #'evil function which, together with its companion macro #'local-bindings (or was it #'local-env...), does allow one more flexibility in what one evals. The usual warnings (don't eval unless you have to etc.) apply. Sincerely, Michał [1] https://github.com/fogus/evalive -- 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