The second form in both the cases. The first ones IMHO are implementation detail. ~BG
On Thu, Jul 25, 2013 at 9:48 PM, Sean Corfield <[email protected]> wrote: > I tend to use plain ol' maps for data structures but was showing > someone defrecord the other day and had some questions about idiomatic > usage: > > Given: > > (defrecord Point [x y]) > > Which constructor form is considered more idiomatic: > > (Point. 10 10) or (->Point 10 10) > > Which accessor form is considered more idiomatic (assume pt is a Point > record): > > (.x pt) or (:x pt) > > Are there (other) things regarding records for which idiomatic usage > would not look just like maps? > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > World Singles, LLC. -- http://worldsingles.com/ > > "Perfection is the enemy of the good." > -- Gustave Flaubert, French realist novelist (1821-1880) > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > 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 unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Baishampayan Ghose b.ghose at gmail.com -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
