Clojure

fix record equality with other maps

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.2
  • Component/s: None
  • Labels:
    None

Description

Record equality is non-symmetric with maps, due to record equality using type and map equality not. Make it so record equiv uses type but equals doesn't, and make Util.equiv use IPersistentCollection's equiv if on either side. Add marker interface for records. Make APersistentMap check for record marker interface.

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/418
Hide
Assembla Importer added a comment -

richhickey said: (In [[r:ac484ba40cc1d94d42ce59e9df92b13e98ed0b6e]]) fix record equality with other maps, = includes type, .equals doesn't. see #418

Branch: master

Show
Assembla Importer added a comment - richhickey said: (In [[r:ac484ba40cc1d94d42ce59e9df92b13e98ed0b6e]]) fix record equality with other maps, = includes type, .equals doesn't. see #418 Branch: master
Hide
Assembla Importer added a comment -

richhickey said: Used a marker interface for MapEquivalence, applied to APersistentMaps instead of for records.

Show
Assembla Importer added a comment - richhickey said: Used a marker interface for MapEquivalence, applied to APersistentMaps instead of for records.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: