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

Removed _IdDict #5

Merged
merged 2 commits into from
Aug 3, 2022
Merged

Removed _IdDict #5

merged 2 commits into from
Aug 3, 2022

Conversation

patrick-kidger
Copy link
Owner

The use of _IdDict was causing issues with symbol lookups, as we can
obtain strings in more than one way. (Which I knew when I originally
wrote this, but for some reason thought we avoided.)

There was a good reason for looking things up by identity, namely that
it makes most sense to look up each AbstractNode by identity. (As
they're not otherwise hashable in any meaningful way.) So we've switched
to doing that just for AbstractNode instead.

The use of _IdDict was causing issues with symbol lookups, as we can
obtain strings in more than one way. (Which I knew when I originally
wrote this, but for some reason thought we avoided.)

There was a good reason for looking things up by identity, namely that
it makes most sense to look up each AbstractNode by identity. (As
they're not otherwise hashable in any meaningful way.) So we've switched
to doing that just for AbstractNode instead.
@patrick-kidger patrick-kidger merged commit 929ff75 into main Aug 3, 2022
@patrick-kidger patrick-kidger deleted the remove-iddict branch August 3, 2022 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant