3 ms·
You're assuming that error handling logic should be local, but I don't think that's ideal. Most of the time, I really do just want things to bail out if somethi
by slaymaker1907 2y ago
You're assuming that error handling logic should be local, but I don't think that's ideal. Most of the time, I really do just want things to bail out if something goes really wrong and log what happened. This is because what often happens is that the real error occurred a while back and so the code expected to handle the error has no idea on how to do that (like passing in a mangled URL).
- maxbond 2y agoProbably most of the time you just want to crash, but that's a pretty easy requirement to satisfy. I don't think either approach has a particular advantage there.