-
Notifications
You must be signed in to change notification settings - Fork 188
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
fix enum to lower case #184
base: master
Are you sure you want to change the base?
Conversation
But... why? It breaks all the tests and even the examples from the documentation. |
emmm... Cuz swift standard library do. |
But the current names are consistent with the underlying C library. Following Swift's convention is good, but this change is going to break all existing apps without any functional improvement. I'll let @blochberger judge if it's worth it. But if such a change is made, it has to be made everywhere, including tests, examples and documentation. |
Thanks for your reply. |
This is an implementation detail and in my case only relevant if references from the Sodium documentation would cause confusion – which I do not think is the case.
I think that this is a good point. However, some parts/ideas of the pull request might be worth giving it a bit more thought:
I vote for closing the pull request for now. I could open issues for using the new |
If we are going to make breaking changes, using the Using quotes to work around existing keywords is painful. Renaming |
Looking at |
Agree |
What's the status of this pull request? I got the impression that everyone is agreeing, yet the PR isn't merged. Friendly ping @blochberger who requested changes. 🙂 |
case Default | ||
case Argon2I13 | ||
case Argon2ID13 | ||
case `default` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case .Default: return crypto_pwhash_alg_default() | ||
case .Argon2I13: return crypto_pwhash_alg_argon2i13() | ||
case .Argon2ID13: return crypto_pwhash_alg_argon2id13() | ||
case .`default`: return crypto_pwhash_alg_default() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.