On Jan 4, 4:22 pm, Raoul Duke <rao...@gmail.com> wrote:
> seems like i can use an interface in deftype, but i can't subsequently
> make the type participate in an interface, only a protocol, which is
> confusing to me: i expected extend to be less restrictive, if
> anything, than deftype. (or am i just getting the syntax horribly
> wrong again? it didn't seem like it, looking at the docs.)
>

It is interfaces that are more restrictive than protocols, and extend
can't fix that. This ability to extend an existing type to a protocol
is a main reason protocols exist.

Rich

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

Reply via email to