-
Notifications
You must be signed in to change notification settings - Fork 226
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
implement Hash for Atom #474
Comments
Note that the same atom (eg |
Yes and also I now see there is impl<'a> Hash for Term<'a> {
fn hash<H: Hasher>(&self, state: &mut H) {
// As far as I can see, there is really no way
// to get a seed from the hasher. This is definitely
// not optimal, but it's the best we can do for now.
state.write_u32(self.hash_internal(0));
}
} So seems like a non-breaking change to add it for the |
Yes, I think that makes sense. @rusterlium/core opinions? I kinda worry that user's start to write the hash somewhere and assume that it will not change across VM instances. |
Can we implement
std::hash::Hash
forAtom
like this:If so, I can open up a PR.
The text was updated successfully, but these errors were encountered: