+1
A further argument in favor of your choices is that p3 and m2 both work
great with higher-order fns, which I didn't immediately find a way to do
with any of the others:
user=> (map (partial apply ->Person) [["bob" "loblaw"] ["stan" "sitwell"]])
(#user.Person{:first "bob", :last "loblaw"} #user.Person{:first "stan",
:last "sitwell"})
user=> (map map->Person [{:first "bob" :last "loblaw"} {:last "stan" :first
"sitwell"}])
(#user.Person{:first "bob", :last "loblaw"} #user.Person{:first "sitwell",
:last "stan"})
Thanks for posting this - I knew there were defrecord changes coming at
some point, but didn't realize they were already in in 1.3. Hooray!
-Colin
--
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