top | item 38160336

Try/Catch Considered Harmful

4 points| baptou12 | 2 years ago |betterprogramming.pub | reply

2 comments

order
[+] eternityforest|2 years ago|reply
Try blocks tend to only be a few lines long, unless they are defensive programming, in which case one doesn't need to reason about them at all, they are only there for the cases you weren't able to reason about anyway.

Does avoiding large size blocks not mostly solve the issue of confusing logic?

[+] baptou12|2 years ago|reply
I think that doesn't solve the problem of the variable scope