Completed
Details
Details
Assignee
Unassigned
UnassignedReporter
Nicola Mometto
Nicola MomettoLabels
Approval
Ok
Patch
Code and Test
Priority

Affects versions
Fix versions
Created July 31, 2013 at 1:33 PM
Updated February 26, 2018 at 8:50 AM
Resolved February 26, 2018 at 8:50 AM
Comparing a sorted-set with numbers to a set with keywords is not symmetric:
The latter case should return false instead of throwing.
Cause: APersistentMap.equiv() and APersistentSet.equiv() do not expect this exception be thrown from the containsKey()/contains() check.
Proposed: It would probably be best for PersistentTreeMap and PersistentTreeMap to implement equiv() and handle that possibility appropriately. Should also consider similar changes in equals() if necessary.
See also: CLJ-1983 (downstream example with clojure.data/diff)
Patch: 0001-CLJ-1242-equals-doesn-t-throw-on-sorted-collections.patch
Screened by: Alex Miller