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

Update example to not use ^ as a hash function #1360

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

amomchilov
Copy link
Contributor

XOR is not a good hash function, and this example might give people the wrong idea.

Better to just outsource to the built-in Hash function used by Array. It's more idiomatic, and will lead to less collisions.

XOR is not a good hash function, and our example shouldn't give people the wrong idea. Better to just outsource to the built-in Hash function used by `Array`. It's more idiomatic, and will lead to less collisions.
@soutaro soutaro added this to the Steep 1.9 milestone Nov 27, 2024
Copy link
Owner

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

Thanks!

@soutaro soutaro merged commit 9858186 into soutaro:master Nov 29, 2024
17 checks passed
@soutaro soutaro added the Released The PR is already included in a published release label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released The PR is already included in a published release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants