In "Programming Clojure" Stuart Halloway says: It is important to note that the metadata reader macro is not the same as with-meta. The metadata reader macro adds metadata for the compiler, and with-meta adds metadata for your own data:
(def ^{:testdata true} foo (with-meta [1 2 3] {:order :ascending})) (Note: example changed to 1.2 style syntax) He then shows the difference between (meta foo) and (meta #'foo). However, it looks like I can accomplish the same thing with (def ^{:testdata true} foo2 ^{:order :ascending} [1 2 3]) So, is there really any difference between with-data and the reader macro? -- 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