On Fri, Jul 30, 2010 at 4:51 AM, Ryan Twitchell <metatheo...@gmail.com> wrote:
>
> (= r s)        ;; true
> (= s r)        ;; true
> (= r {:a 1})   ;; false
> (= {:a 1} r)   ;; true
>
> Is this intentional? (I hope not)
>

The three first are documented in (doc defrecord)
"In addition, defrecord will define type-and-value-based equality and
  hashCode."

I don't know if the last one is intentional or not.

Best,

Nicolas.

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