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

discussion: should hashcode be calculated based on order #2742

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jarlah
Copy link

@jarlah jarlah commented Apr 26, 2023

What concerns me is that changing hashCode in such a big way can affect other parts of vavr, like equals. However, it seemed to not make any difference to comparing the same two (different) hash maps I made a test for with assertThat(...).isNotEqualTo(...), which is also the example from #2733

In addition, this Collections.hasOrdered and Collections.hashUnordered is used many other places. Should we change them too?

Look at this as a discussion PR, more than actual fix.

DONTMERGE :) (unless it was an ingenious fix, which I doubt)

PS! is this project used actively still? to be honest, I would rather use vavr than mock around with streams and collect and wierd reduce mechanics.

@jarlah jarlah changed the title fix: hashcode should be calculated based on order discussion: should hashcode be calculated based on order Apr 26, 2023
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.

None yet

1 participant