4 ms·
Am important thing to remember is that even with wrapping Rust maintains memory safety Still, I agree, I prefer consistent semantics between dev/prod as much a
by __s 6y ago
Am important thing to remember is that even with wrapping Rust maintains memory safety
Still, I agree, I prefer consistent semantics between dev/prod as much as possible. Especially since there's methods to have checked/wrapping/etc arithmetic, so I can always go to those if I want the other behavior
Thankfully, this behavior is a flag which you can personally configure to be consistent across dev/prod: https://doc.rust-lang.org/cargo/reference/profiles.html https://doc.rust-lang.org/cargo/reference/profiles.html
It does make sense when interpreting wrapping checks in dev as debug assertions