2 ms·
I haven't quite wrapped my head around Rust but I know that anything that moves the possibility of UB towards 0 is a godsend. Just ask the folks at ESA who work
by cratermoon 6y ago
I haven't quite wrapped my head around Rust but I know that anything that moves the possibility of UB towards 0 is a godsend. Just ask the folks at ESA who worked on the first Ariane 5 launch.
- steveklabnik 6y agoRust's semantics are: * in debug builds, you get a panic on overflow * otherwise, you may choose to panic, but if you do not, it is two's compliment wrapping It is defined this way so that someday if checks get cheap enough we can enable them in release builds too, but at least it's not UB!