Skip to content

Add feature to enable panicking arithmetic #522

@kana-sama

Description

@kana-sama

Is your feature request related to a problem? Please describe.
We migrated from primitive_types to ruint and one of issues that we have it that sometimes we have unexpected overflows. Previously we could handle it because primitive_types panics on overflows but now we just get silent overflows.

Describe the solution you'd like
Feature flag that when enabled replaces current logic with one that panic on invalid operations.

Describe alternatives you've considered
Newtypes with another impls. But we lose compatibility with libraries like alloy without explicit coercions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions