-
Notifications
You must be signed in to change notification settings - Fork 0
Initial Setup #1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
|
||
# issue #26939 | ||
d26939 = WeakKeyIdDict() | ||
d26939[big"1.0" + 1.1] = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
d26939[big"1.0" + 1.1] = 1 | |
d26939[big"1.0"+1.1] = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not check every line in detail, but as a copy-paste of reviewed code it looks good to me. I think we should also copy all the Base.Iddict
tests before making a release, since we should have identical semantics in the case the keys are not GC'd (which we can ensure by keeping a global reference to the keys we test with for example). They deal with a lot of tricky edge cases there that I think would be great to ensure we have tested here. (Not blocking for this PR).
Co-authored-by: Eric Hanson <5846501+ericphanson@users.noreply.github.com>
Preliminary copy/paste from https://github.com/Nemocas/AbstractAlgebra.jl/blob/f33f5de5e471938acbd06565245d839df4622916/src/WeakKeyIdDict.jl
and boilerplate setup