user> (set! *print-meta* true) true user> '#^a symbol symbol user> '#^a (list) #^{:line 1, :tag a} (list) user> '#^a [vector] [vector] user> '#^a {:a :map} {:a :map} user> '#^a #{:a :set} #^a #{:a :set} user> '#^{:meta :map} symbol symbol user> '#^{:meta :map} (list) #^{:line 1, :meta :map} (list) user> '#^{:meta :map} [vector] [vector] user> '#^{:meta :map} {a map} {a map} user> '#^{:meta :map} #{a set} #^{:meta :map} #{a set}
PersistentLists and PersistentHashSets work, but other things fail. I think i know the reason: Compiler.emitValue() (Compiler.java:3741-3879) is for initializing constant expressions, but it only adds metadata, if the value is an instance of class Obj (Compiler.java:3870). But since commit 430dd4fa711d0008137d7a82d4b4cd27b6e2d6d1 (metadata for fns) AFn no longer extends Obj, and thus Maps, Symbols and Vectors aren't instances of Obj anymore. PersistentList extends ASeq which extends Obj directly, so those work. No idea why PersistentSet works however. AlexK -- 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