Protocols are a way to achieve polymorphism.  Clojure protocols are similar to 
Haskell types classes. 

Here is a video that explains clojure protocols: http://vimeo.com/11236603
 
Matt Hoyt


________________________________
From: stevelewis <spiritm...@gmail.com>
To: Clojure <clojure@googlegroups.com>
Sent: Saturday, November 5, 2011 6:40 PM
Subject: Newbie question on OO/records

Okay, I'm trying to understand records. I read this article:
http://freegeek.in/blog/2010/05/clojure-protocols-datatypes-a-sneak-peek/
(Clojure Protocols & Datatypes - A sneak peek by Baishampayan Ghose. I
found it helpful, but the usage of datatypes and protocols looks/feels
very object-oriented to me. Am I wrong? Is it just because the
function comes before the record instance?

(fly hummingbird)

As opposed to calling:

hummingbird.fly() in a standard OO language.

Thanks for any insight.
Steve

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

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