On Sep 29, 2008, at 3:20 PM, Stephen C. Gilardi wrote:
> This part concerns me:
>
>> Note: Since clojure maps are no java maps, they can't be equal to
>> java
>> maps. This holds for wrapped clojure maps as well - surprisingly
>> (in a
>> bad sense), but i don't see a way around this:
>>
>> (= (doto (HashMap.) (put 1 2)) {1 2})
>> -> false
>>
>> (= (jmap {1 2}) {1 2})
>> -> false
After some more thought, I'm not sure whether this should be a concern
or not. Since jmap's purpose is to wrap Clojure maps for passing to
Java APIs, I'm not sure when it will be necessary to compare jmaps to
Clojure maps. In the abstract, it would be nice if they could be
compared for equality, but I'm not sure how important this is in
practice.
--Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---