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

Should we define hash(x::Enum)? #17043

Closed
quinnj opened this issue Jun 20, 2016 · 1 comment
Closed

Should we define hash(x::Enum)? #17043

quinnj opened this issue Jun 20, 2016 · 1 comment
Assignees

Comments

@quinnj
Copy link
Member

quinnj commented Jun 20, 2016

I'm running into issues with precompilation and a module-level dict with enum keys; I believe the root cause is because we don't define a hash function for Enums. Should we? What's the right way to do this? I can dig more into it, but I figured I'd bring it up because others probably know better.

@JeffBezanson
Copy link
Member

=== works for Enums, so we should see if we can make object_id more stable for types. It would probably work to base it on Module uuids and type names.

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

No branches or pull requests

2 participants