Bug 15968 – deep-version of equals

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-04-29T08:55:29Z
Last change time
2024-12-01T16:26:37Z
Assigned to
No Owner
Creator
Seb
Moved to GitHub: phobos#10173 →

Comments

Comment #0 by greensunny12 — 2016-04-29T08:55:29Z
We should have a deep comparison mode for std.algorithm.comparison.equal, how about "equals"? Reason: `equal!(equal!equal) is quite annoying over time ;-) E.g. [[2,2],[1,2]].equals([[2,2],[1,2])
Comment #1 by per.nordlow — 2016-05-06T11:21:53Z
Typo: Should be [[2,2],[1,2]].equals([[2,2],[1,2]]) So this means comparing ranges of ranges, right?
Comment #2 by per.nordlow — 2016-05-06T11:24:26Z
Note that [[2,2],[1,2]].equals([[2,2],[1,2]]) currently works because arrays can be compared with ==. Example needs to replaced with range of range (RoR) example.
Comment #3 by per.nordlow — 2016-05-06T11:27:26Z
Correction: [[2,2],[1,2]].equal([[2,2],[1,2]]) currently works (without the s).
Comment #4 by robert.schadek — 2024-12-01T16:26:37Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10173 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB