Re: Newbie question on OO/records

2011-11-07 Thread stevelewis
So, you can have records in one .clj file and implementations of the protocols in another .clj file? On Nov 6, 1:43 am, Baishampayan Ghose b.gh...@gmail.com wrote: Okay, I'm trying to understand records. I read this article:

Re: Newbie question on OO/records

2011-11-07 Thread Alan Malloy
Yes On Nov 7, 10:35 am, stevelewis spiritm...@gmail.com wrote: So, you can have records in one .clj file and implementations of the protocols in another .clj file? On Nov 6, 1:43 am, Baishampayan Ghose b.gh...@gmail.com wrote: Okay, I'm trying to understand records. I read this

Re: Newbie question on OO/records

2011-11-06 Thread Alan Malloy
On Nov 5, 10:43 pm, Baishampayan Ghose b.gh...@gmail.com wrote: Okay, I'm trying to understand records. I read this article: http://freegeek.in/blog/2010/05/clojure-protocols-datatypes-a-sneak-p... (Clojure Protocols Datatypes - A sneak peek by Baishampayan Ghose. I found it helpful, but

Re: Newbie question on OO/records

2011-11-06 Thread Baishampayan Ghose
Records Protocols are indeed a way of achieving polymorphism and is quite similar to class-based single dispatch found in Java, etc. Thus the calling conventions can look quite familiar. Having said that, records protocols are fundamentally different from class based OO since unlike

Newbie question on OO/records

2011-11-05 Thread stevelewis
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

Re: Newbie question on OO/records

2011-11-05 Thread Matt Hoyt
@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

Re: Newbie question on OO/records

2011-11-05 Thread Baishampayan Ghose
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