Hi, I was just going to post exactly the same. I've looked in the Compiler.java and the evaluation of metadata happens together with evaluation of the form. So it is a desired behavior after all.
Regarding empty vector, I've already created a ticket for it, http://dev.clojure.org/jira/browse/CLJ-1235 Thank you, Jozef On Thursday, July 25, 2013 11:15:17 AM UTC+2, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > my understanding is, that the metadata is evaluated when the literal is > evaluated. In the first case this means to just strip the surrounding > quote. So nothing happens to the metadata. In the second case upon > evaluation the literal vector is traversed and its elements are evaluated. > During this process also the metadata gets evaluated. > > The reader does no evaluation whatsoever (modulo "#=" and such > specialities). You can see the effect by doing something like this: > {(gensym) :a (gensym) :b}. > > I think the issue with the empty vector in the quote is a bug. > > 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.