2 ms·
> Rust did not have checked arithmetic on by default Except it does, in debug mode, which is the default compilation mode. And you don't have to tweak compiler
by unanswered 6y ago
> Rust did not have checked arithmetic on by default
Except it does, in debug mode, which is the default compilation mode. And you don't have to tweak compiler settings or linters to get checked arithmetic in release: you simply call the checked arithmetic functions, which give the added benefit of giving you complete freedom in how to handle overflow.
Wherever you 'learned' this misinformation from, please stop considering it a trustworthy source :(