Phillip Lord <phillip.l...@newcastle.ac.uk> writes: > Is it because you're expansion returns the symbol and not the > function. > > ('inc 2) > > returns nil which is what I think is happening.
Ah, indeed. I really whished that would throw an error. I mean, it's cool that keywords can lookup themselves in maps, but I don't think that's needed for symbols. At least I've never seen occurences of ('foo my-map) ('foo my-map ::default) in real code, and it's likely to shadow errors such as mine. Anyway, using `resolve` works: (defmacro do-do [x afn] `(do ~((resolve afn) x))) Is that what one would use, or is there something better? Bye, Tassilo -- -- 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.