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

Let users be polymorphic in choice of hash function #4

Open
jberryman opened this issue Jul 2, 2015 · 1 comment
Open

Let users be polymorphic in choice of hash function #4

jberryman opened this issue Jul 2, 2015 · 1 comment

Comments

@jberryman
Copy link
Owner

It might be nice to support allowing users to write code that was hash-function-agnostic, letting their users choose the hash function they prefer. For example someone might create a hash table library using hashabler and allow their users to swap in FNV-1a or siphash or a hash function of their own choosing.

I'm not quite sure what this would look like, especially since I'm not convinced the way I've structured the current Hash and Hashable classes is that great.

Please comment if you're interested in this feature and mention your use case.

@jberryman
Copy link
Owner Author

I've created a set of Hash types of different widths in v1.0. This feature can be done in a separate package if anyone wants it I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant