Y
Hacker News
new
|
ask
|
show
|
jobs
by
ben-schaaf
945 days ago
Rust has i64::checked_add and i64::checked_mul, which return None on an overflow. Not only is it easy to do, the compiler help ensure you checked the result.