|
|
|
|
|
by Quarrelsome
25 days ago
|
|
its not your job to comment spitty replies either but yet you volunteer that time, when you could have been productive instead of whatever the fuck this shit is. My primary concern with this pattern versus exceptions is calling code can simply discard the resulting problem. |
|
Except with a Result type the fact that an exception can occur and should be handled in the first place is explicit.
The problem if anything is that you MUST say something about the error case, despite the common scenario being “pass it forward” — the same reason exception do this by default. Which is also why rust for example special cases Result with the ? operator to do exactly that