3 ms·
Rust does not enforce error checking either. You can ignore errors in Rust.
by Thaxll 2y ago
Rust does not enforce error checking either.
You can ignore errors in Rust.
- ben-schaaf 2y agoIgnoring 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.
- djbusby 2y agoBasic has on error goto next