3 ms·
Ignoring errors is a thing you can do whether you're checking them or not. Rust does enforce error checking, every Result<T, E> is required to be checked before
by ben-schaaf 2y ago
Ignoring errors is a thing you can do whether you're checking them or not. Rust does enforce error checking, every Result<T, E> is required to be checked before the value can be accessed. The only exception for this is if you don't need to access the Result's value, for which there's at least a built-in warning. And of course `unsafe`.
- randomdata 2y ago> Result<T, E> is required to be checked before the value can be accessed. Which is a flaw in Borgo, at least when interfacing with Go code, as in Go both T and E should independently valid states.