diff icon indicating copy to clipboard operation
diff copied to clipboard

Support cyclic types

Open meln5674 opened this issue 1 year ago • 0 comments

Presently, calling Diff() on a self-referential value will never return.

This patch records all pointer comparisons, and before each pointer comparison, if a comparison has happened before during the same diff, indicating a cycle was detected, then the comparison does nothing.

This mimics how the standard libraries DeepEqual function works.

meln5674 avatar Sep 11 '23 01:09 meln5674