Comment Comment by masklinn > Is it just about signed numbers or not?No. You can plug an `UInt8(255)` in an online playground and try to increment it, it’ll crash unless you use an overflowing operator.> Also, what other languages are there that are "like Swift"?In debug mode, Rust will panic on overflow (regardless of signing). You can also enable overflow-checks in release mode. parent masklinn 6 years ago
No. You can plug an `UInt8(255)` in an online playground and try to increment it, it’ll crash unless you use an overflowing operator.
> Also, what other languages are there that are "like Swift"?
In debug mode, Rust will panic on overflow (regardless of signing). You can also enable overflow-checks in release mode.