Add an option (possibly the default?) for DeepCollectionEquality to handle self-referential structures #18729
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
type-enhancement
A request for a change that isn't a bug
Sometimes it's useful to be able to compare nested object structures that can contain self-referential loops. Currently DeepCollectionEquality causes a stack overflow when passed such structures, but it would be nice if it could handle them. This could be done either as a configuration option or as the default if the prospect of storing back-references isn't too worrisome.
Currently the YAML package has its own custom implementation of deep equality, but it would be nice if it could use the standard implementation instead.
The text was updated successfully, but these errors were encountered: