On Fri, Jul 1, 2011 at 9:20 AM, David McNeil <[email protected]> wrote:
> On Jun 30, 7:54 am, Stuart Sierra <[email protected]> wrote:
>> Recently the received wisdom has been: protocols are a low-level
>> implementation detail. Actual APIs should be built with normal functions
>> that call the protocol methods.
>
> Stuart- I am a bit confused by this statement, and judging by this
> thread others are as well. Any chance you could elaborate on the
> received wisdom with respect to protocols and APIs?

I think a great example of this is clojure.java.io. The api is
"reader" and "writer", but the implementation is in the Coercions and
IOFactory protocols.

It's the largest "real world" usage of protocols I've seen so far, and
it's quite a nice, I think.

--Aaron

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