That was basically my question, protocols are designed for this but
ILookup isn't a protocol.  Is it possible to make ILookup into a
protocol?  I haven't looked at the java code much at all, but I might
take a stab at creating a patch it that seems possible.

Converting java.util.Properties into a map isn't hard, but converting
java objects to native maps is extreamly common (bean, reflect, ring,
etc...) and perhaps unnecessary in many situations if one could just
extend an existing java type with ILookup so that if it looks like a
duck, its a duck.

- Kurt



On Mar 8, 3:34 pm, Stuart Sierra <[email protected]> wrote:
> Oh yeah, you can't extend an interface to a new class.  So it won't work.
>  This is why protocols exist, in fact.  Silly me.
>
> -S

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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