Hi,
Here is the question on differences between with-meta and #^
Specifically 1) and 2) are different in that 1) has meta info carried
over
to jumping-wubbie, while 2) has not.
What's the rationale behind this?


user=> (def wubbie {:name "Wubbie" :email "[email protected]"})
#'user/wubbie
user=> wubbie
{:name "Wubbie", :email "[email protected]"}
user=> ^wubbie
nil
user=> (def jumping-wubbie (with-meta wubbie {:jumping true}))  ;; 1)
meta info set
#'user/jumping-wubbie
user=> ^jumping-wubbie
{:jumping true}
user=> (def jumping-wubbie2 #^{:jumping true} wubbie)  ;; 2) meta inof
not carried over
#'user/jumping-wubbie2
user=> ^jumping-wubbie2
nil


Thanks
Sun

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to