Comment

Comment by AnyTimeTraveler

Rust's number types have functions like "wrapping_add" or "overflowing_add", which do not panic when overflowing and instead explicitly wrap around or return a result that must be checked.

You can easily write code that does not contain any possible panic points, if you want.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton