| ▲ | astrange 3 hours ago | |
Anything with ranged numeric types. Like everyone's favorite functional programming language, Ada. | ||
| ▲ | ghaslt 2 hours ago | parent | next [-] | |
This issue raises SIGFPE. Ada would raise Constraint_error, which is easier to catch than a signal, but still occurs at runtime. You need range proofs to be 100% safe, and then you can as well use the regular type because invalid values will not occur. | ||
| ▲ | black_knight 2 hours ago | parent | prev [-] | |
Or Liquid Haskell. | ||