by tc · 9y ago · 0 comments
Dependent types are meant to solve exactly this class of problem. Rust has an RFC for adding these:
Puffs does not use infinite precision integers (aka "big ints"), for performance. But Puffs still checks for arithmetic overflow.
Re dependent types, I made a comment elsewhere on this page that "dependent types are one way to prove bounds safety, but they're not the only way".
edit: also thanks for the link :)