*"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."*
I misspoke: This is not to say that protocols *cannot* be API functions, but 
that protocols are not *necessarily* APIs, as interfaces would be in Java.

That said, it is often convenient to wrap protocol methods in normal 
functions to handle special cases, default arguments, varargs, etc.

-Stuart Sierra
clojure.com

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