2 ms·
> I don't know what ? really does Because you would rather pay the ongoing cost of writing (and worse, having to read) thousands of pointless `if err != nil` b
by stouset 10y ago
> I don't know what ? really does
Because you would rather pay the ongoing cost of writing (and worse, having to read) thousands of pointless `if err != nil` blocks than take three minutes to see exactly what try! does, which is (almost) exactly the Rust equivalent of just that.
> That's trivially possible in the Go version
It's also trivially possible in the Rust version, except you don't pay a ludicrous cost in readability of the logic flow in the thousands of other places you have to return an error.