Hello,
I was wondering why the first scenario didn't work but couldn't find details on this. Can someone please explain?
I also stumbled over this issue. Please read this sentence from the "Metadata" section on clojure.org (http://clojure.org/metadata)
"Symbols and collections support metadata"
I also missed this. It's pretty subtle. Since 10 is neither a Symbol nor
a Collection. You get the error. You can set the metadata of the Var:
---8<---
user=> (def #^{:Some :MetaData} v 10)
#'user/v
user=> (meta #'v)
{:Some :MetaData, :file "NO_SOURCE_FILE", :name v, :ns #<Namespace:
user>, :line 1}
---8<--- Hope this helps. Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature
