11 ms·
Same deal with Rust.
by notfed 2y ago
Same deal with Rust.
- loup-vaillant 2y agoI've heard that Rust wraps around by default?
- Measter 2y agoRust has two possible behaviours: panic or wrap. By default debug builds with panic, release builds with wrap. Both behaviours are 100% defined, so the compiler can't do any shenanigans. There are also helper functions and types for unchecked/checked/wrapping/saturating arithmetic.