On Wed, Apr 13, 2011 at 5:39 PM, Bhinderwala, Shoeb <
sabhinderw...@wellington.com> wrote:

>  David,
>
>
>
> Thank you for asking this question. I am not sure why I need a defrecord. I
> am new to clojure and come from OO background. In Java for example one would
> immediately take the result set and convert it to objects. Is there any
> advantage to converting to defrecord?  I read Clojure has other features
> like protocols that work better with defrecords. Should I wait until I
> require those features and just continue to work directly with maps? Is
> there any disadvantage to working with plain maps?
>
>
>
> Thanks
>
> Shoeb
>

Rule of thumb - do it first with maps. It'll work out 99% of the time.
defrecord/type are useful, but I think digging into them early on would be a
big distraction.

David

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