Re:What would it take to add refinement types to Rust?
by archargelod on Tuesday December 24, 2024 @10:24PM
(#42506625)
Nim has Natural and Positive (signed int) types that checked at compile and runtime. You can also define arbitrary range types for any ordinal type, for example enums:
It will raise under/overflow exception if value falls out of range.
[ Parent
| on HN ]
There are no comments on this comment yet.