Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you're using Rust you can push it one level further: use a NonZeroU*.

More than that and you'll need nightly for now: https://docs.rs/ranged_integers/latest/ranged_integers/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: