2 ms·
It would be "perfectly legible" if it was just the logic. As it is, it's more `if err return err` than actual logic. And there's high chance the layer above is
by troupo 2y ago
It would be "perfectly legible" if it was just the logic. As it is, it's more `if err return err` than actual logic.
And there's high chance the layer above is doing the same thing, and the layer above, until you actually get to actual error handling.
Rust at least recognized this and first provided try? and then the ? operator as a shortcut to this boilerplate