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

Fix Hash#put_if_absent putting duplicate keys #14427

Conversation

HertzDevil
Copy link
Contributor

Fixes #14425

Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to see some significant code reduction. I guess it was good idea to optimize for the insert case specifically, but as we know now, that didn't work out.

@straight-shoota straight-shoota added this to the 1.12.0 milestone Apr 3, 2024
@straight-shoota straight-shoota merged commit 8ca32e8 into crystal-lang:master Apr 4, 2024
57 of 58 checks passed
@HertzDevil HertzDevil deleted the bug/hash-put-if-absent-duplicate branch April 5, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hash#put_if_absent can put duplicate keys
3 participants