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

Add HashCodeBuilder to help developers build hash codes #3597

Closed
sethladd opened this issue Jun 13, 2012 · 3 comments
Closed

Add HashCodeBuilder to help developers build hash codes #3597

sethladd opened this issue Jun 13, 2012 · 3 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link
Contributor

Dart objects don't implement Hashable by default. It is left up to the developer to implement Hashable and provide a sensible hashcode. This can be error-prone if not understood. However, there are well known hash code generation strategies.

Suggest the Dart library ship with a hashcode builder to facilitate the correct strategy for generating a hashcode.

@sethladd
Copy link
Contributor Author

Related: http://code.google.com/p/dart/issues/detail?id=3611

(in fact, if we get 3611, we probably don't need this)

@DartBot
Copy link

DartBot commented Jun 13, 2012

This comment was originally written by branflak...@gmail.com


Maybe worth noting for comparison. Looks like guava has a hashcode factory. https://code.google.com/p/guava-libraries/wiki/HashingExplained

@sethladd sethladd added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels Jun 13, 2012
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Feb 29, 2016
@lrhn lrhn added the core-m label Aug 11, 2017
@floitschG floitschG added closed-duplicate Closed in favor of an existing report and removed core-m labels Aug 31, 2017
@floitschG
Copy link
Contributor

Marking as dupe of #11617

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants