4 ms·
The vast majority of rust application code has unwrap()s everywhere, not to mention bounds checks on arrays, both of which trigger panics. You can always check
by sirwhinesalot 3y ago
The vast majority of rust application code has unwrap()s everywhere, not to mention bounds checks on arrays, both of which trigger panics.
You can always check the validity of a generational reference before every use, just as you can check the array length or the Result<T,E>