Daniel Pitts
12/19/2024, 9:34 PMequals
method for my JsonObject library, and had thought: It's possible to have a cycle in the graph. When computing equality of two JsonObjects (or JsonArrays), should detecting a cycle:
1. Throw an exception
2. Return false
for equals.
3. Keep comparing unless both sides have a cycle.
4. Consider them equal only if they have the same cycle.Sam
12/19/2024, 9:42 PMDaniel Pitts
12/19/2024, 9:43 PMequals
contract mean it shouldn't ever throw an exception? I vaguely recall reading that once about Java.Daniel Pitts
12/19/2024, 9:49 PMSam
12/19/2024, 9:53 PMephemient
01/01/2025, 7:23 PMDaniel Pitts
01/01/2025, 8:23 PMephemient
01/01/2025, 9:32 PMDaniel Pitts
01/01/2025, 9:33 PMephemient
01/02/2025, 11:19 PMDaniel Pitts
01/02/2025, 11:54 PM