On Thursday, October 25, 2012 11:07:23 AM UTC-7, raould wrote:
>
> On Thu, Oct 25, 2012 at 11:03 AM, Brian Craft 
> <craft...@gmail.com<javascript:>> 
> wrote: 
> > that's getting very OOP, and I doubt it's idiomatic clojure. 
>
> http://www.ibm.com/developerworks/library/j-clojure-protocols/ 
>
> ? 
>


Hm, yeah, I don't really get protocols, yet. They seem to be all about java 
classes. If I'm using a map to represent some type of data, would I start 
putting protocols on maps? Seems like that wouldn't be a good approach, 
since different protocols would collide. E.g. two shapes represented by 
maps are going to dispatch to the same "area"  protocol, I think, since 
they're both maps. I'm not sure.

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