4 ms·
This is personal preference of course, but exceptions are essentially "on error GOTO foo". They never resonated well with me either, since the control flow is m
by fellerts 4y ago
This is personal preference of course, but exceptions are essentially "on error GOTO foo". They never resonated well with me either, since the control flow is muddled once you introduce exceptions.
> "invisible errors"
If you read further on you get the author's justification for this claim:
auto result = foo().bar();
> As a reader, I can't see where potential errors can occur. Even if I look at the function declaration for foo and bar I won't know whether or not they can throw exceptions [...]
Do you disagree with the reasoning reasoning this?