You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2023. It is now read-only.
Hi there, would you accept a PR that adds support for fixed-size integer types?
Motivation
When using smaller types (e.g. int8, uint16) users need to manually cast
int/uintand perform bounds checking.Proposal
It would look like this:
This code would induce a panic (as opposed to a silent wrap-around):