-
Notifications
You must be signed in to change notification settings - Fork 295
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
Suggestion: Make try
functions default
#764
Comments
We don't need to argue one way or the other, that's been done in several other issues. But, what exactly do you mean by making the functions default? What is the code change within the repo, exactly, that you're suggesting? |
I'm suggesting to have the checks in the "default" get function. So for example |
This is not possible because it's a breaking change. Due to the use of the semver hack, it cannot be done as part of #758 either because the semver hack does not allow renaming trait methods. |
I think since this is a major version release its fine to have breaking changes which don't work using the semver hack. |
No, it is absolutely necessary for the breaking change to be compatible with the semver hack. It's critical that Tokio is able to upgrade from bytes v1 to v2 in a non-breaking manner, which is only possible if we use the semver hack. The semver hack allows some kinds of breaking changes such as:
However, other breaking changes such as renaming or removing trait methods, are not possible with the semver hack. The call for breaking changes reiterates this:
|
Hello. I want to Suggest replacing all existing with Safe ones like implemented in 3ab876f. I have no idea why it was decided to make this Library panic especially if people are often using it in critical infrastructure like Servers (like i do).
You could probably come up with the argument that some people don't need checks and that would increase runtime speed, Which is true. So i think the best solution would be to add non-checking function named
_unchecked
like the rust std has.The text was updated successfully, but these errors were encountered: