Hi, Am Montag, 5. August 2013 12:17:53 UTC+2 schrieb Alice: > > (defmacro foo > [c] > `(<! ~c)) > > (let [c (chan)] > (go (prn (foo c))) > (>!! c :hi)) > > I thought this would not work because foo is expanded after go is > expanded, so <! isn't visible to go. > What am I missing? > > I'm not sure what your expectations are exactly. It works, because go does recursively expand all macros in it's body before doing any work.
King regards Meikel -- -- 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.