As a C++ guy I'm on the early-return side of things, because it communicates quickly which fallible operations (don't) have fallbacks.
You see "return" you know there is no "else".
Also, as a code-formatting bonus, you can chain a bunch of fallible operations without indenting the code halfway across your monitor.
As a C++ guy I'm on the early-return side of things, because it communicates quickly which fallible operations (don't) have fallbacks.
You see "return" you know there is no "else".
Also, as a code-formatting bonus, you can chain a bunch of fallible operations without indenting the code halfway across your monitor.