On Mon, May 21, 2012 at 5:39 AM, Mark Engelberg <mark.engelb...@gmail.com>wrote:

> On Mon, May 21, 2012 at 1:53 AM, nicolas.o...@gmail.com <
> nicolas.o...@gmail.com> wrote:
> We need to figure out a way to make reusable partial implementations the
> norm.  Maybe the solution is a Clojure construct along the lines of:
> (get-protocol-implementation <type> <protocol-or-interface>) gives you
> back a mapping of the functions used by that type to implement that
> protocol.
> This would allow you to get at and reuse protocol implementations, even if
> the original author didn't think to separate out the mapping.
>

It's possible to do very sophisticated types of code reuse for those that
need it via delegation given we have the ability to specify extend-type
Object/default.

David

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