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

Error enhancements #57

Merged
merged 5 commits into from
May 24, 2023
Merged

Error enhancements #57

merged 5 commits into from
May 24, 2023

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented May 24, 2023

  • error: Provide constants for common errors
  • error: Use newer idioms, silence over-zealous deprecation warnings
  • error: Deprecate direct access to .number, use .number() instead
    While this is API cosmetics on the surface, it will allow changing the type's internals later on, eg. to make the negativity of its value an unsafe invariant (maybe even allowing the compiler to see the niches).
  • error: Make from_constant const
  • error: Derive PartialEq for NumericError

This started out as deriving PartialEq, and wound up enhancing usability on the whole.

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

Successfully merging this pull request may close these issues.

1 participant