4 ms·
> Try/catch is goto wrapped in pretty braces. There's no way to continue where you left off, once the error is handled. ... > But still, nothing is as bad as
by qntm 15y ago
> Try/catch is goto wrapped in pretty braces. There's no way to continue where you left off, once the error is handled.
...
> But still, nothing is as bad as the common "On Error Resume Next" that so many terrible VB programs start with.
Assuming "On Error Resume Next" does what I think it does, you can't complain about both of these at once.
- michael_dorfman 15y ago"On Error Resume Next" does not do what you think it does. It ignores the error, and marches blithely on. That is very different than "continuing where you left off, once the error is handled."
- mattdeboard 15y agoOne of my personal pet peeves is seeing: "try: foo() \ except: pass" in code.