I thought of protocols initially here too, but protocols just define functions, 
so where would the data live that you want as metadata? 

A closure over the data? This implies extending the protocol on a per-instance 
basis, which afaik doesn't exist (cljs design work aside 
http://dev.clojure.org/display/design/specify+i.e.+reify+for+instances).

Some global map? We can't key on arbitrary java objects since the hashcode can 
change. Is there a key that will work?

A var? We can already do that.

Maybe there's someplace I'm missing where you could store this data and look it 
up later via a protocol implementation?

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to