On Oct 7, 2008, at 3:19 AM, Matthew D. Swank wrote:

> This seems strange:
> (with-meta :foo {:type 'id})
> [is an error]


 From http://clojure.org/metadata:

        Symbols and collections support metadata, a map of data about the  
symbol or collection

Keywords are not symbols in Clojure and they don't support metadata.  
That makes sense when you consider that there can be only one copy of  
each keyword at runtime, so there would be no way for two to be equal,  
but have different metadata.

--Steve


--~--~---------~--~----~------------~-------~--~----~
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
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