Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect and handle cyclic data / share substructure involving all reference types #1

Open
cpcallen opened this issue Jun 19, 2017 · 0 comments
Labels

Comments

@cpcallen
Copy link
Owner

cpcallen commented Jun 19, 2017

Flatpack (and in particular the methods flatpack.flatten and .unflatten) correctly handle cyclic data and shared substructure involving pointers, but from reading the source for reflect.DeepEqual it's clear that it's possible to encounter cycles that do not involve pointers.

In particular, slices and maps are both reference types which can share substructure and result in circular references (in conjunction with interface types, which, while they may internally be implemented with a pointer, cannot by themselves result in shared substructure or cycles).

(Moved from CodeCity)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant