The macro is a code generator, with which the compiler computes the actual definition of the "test" function. What's there is x, and the macro does not like x. The REPL definition of JLabel worked because JLabel was the literal argument. See https://clojure.org/reference/macros, which is subtle about this point, or the excellent book "Mastering Clojure Macros".
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/e415eeb6-6cd8-462b-94cb-17ed5a8ddb23%40googlegroups.com.