Comment

Comment by ultimaweapon

Rust is the only language I can easily control how integer overflow should behave. I can use `var1.wrapping_add(var2)` if I want the result to be wrapped or `var1.checked_add(var2)` if I don't want it to overflow.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton