> To work around the issue, = was changed to be in terms of equiv (see the 
> definitions in [2]). This allows compliance with the Map interface and 
> prevents (= (Square. 1 :red) (Rope. 1 :red)).
>
> [1] One idea was to have a hidden key corresponding to the record's type 
> be visible when using the Map interface; that would cause a great deal of 
> complexity and was rejected.
> [2] 
> https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Util.java
>
>
I see. This does make sense for record. Thanks. I just wish the decision 
were consistent and so case two would be false too. All these 
inconsitencies here and there are adding to the mental burden which we hope 
to reduce when we come to LISP in the first place.
 

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