Or .unwrap(), which I see relatively often.
Re:The Next Step for Generics
by umanwizard on Wednesday June 17, 2020 @08:43AM
(#23550684)
That’s not ignoring errors, it’s explicitly choosing what to do in case of one (crash).
Perhaps more fundamental: it’s impossible to accidentally use an uninitialized “success” return value when the function actually failed, which is easy to do in C, C++, Go, etc.