News for hackers. Stuff that matters.
Re:Memory safety CVEs differ between Rust and C/C++ by kllrnohj on Friday June 19, 2026 @08:50AM (#48597983)
> There's also wrapping_add / saturating_add for anyone concerned about this. Ya want a specific behavior? Just tell the compiler!

That is exactly why Rust's behavior for +/- operators is a mistake and wrong. It should always panic and anyone that wants something different can specify that in code, where it's clear and explicit.

There are no comments on this comment yet.