non-equality (=) of records nuance

2014-03-18 Thread Greg D
Greetings, I'm confused by the failure of 2 record instances to compare as equal, only when generated by a protocol method and having extra fields. The code below shows this, with uninformative REPL responses snipped. The attached file has similar code as a clojure.test. Would somebody please

non-equality (=) of records nuance

2014-03-18 Thread Alex Miller
What Clojure version are you on? -- 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

Re: non-equality (=) of records nuance

2014-03-18 Thread Nicola Mometto
Here's the bug: user (defrecord a []) user.a user (defrecord b []) user.b user (.__extmap (map-b (map-a {:a 1}))) #user.a{:a 1} -- 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

Re: non-equality (=) of records nuance

2014-03-18 Thread Alex Miller
Yeah that looks bad. -- 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,

Re: non-equality (=) of records nuance

2014-03-18 Thread Nicola Mometto
I added a patch+tests here http://dev.clojure.org/jira/browse/CLJ-1388 Alex Miller writes: Yeah that looks bad. -- 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

Re: non-equality (=) of records nuance

2014-03-18 Thread Greg D
I'm on 1.5.1 I have a workaround: - instead of - (map-Foo this) - use - (map-Foo (into {} this)) On Tuesday, March 18, 2014 5:47:46 PM UTC-7, Alex Miller wrote: What Clojure version are you on? -- You received this message because you are subscribed to the Google