On Sun, Sep 1, 2013 at 9:58 AM, Colin Jones <trptco...@gmail.com> wrote:

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

WeakIdentityHashMap is lacking from java.util but there are several
third-party implementations.

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