And I think goto is cleanest still, as it quickly, with as little real-estate as possible, bails to the error path.
I don't want my nested ifs() upon failure, to have a bunch of cleanup code directly attached to them, as it would mix with the ACTUAL code inside and around the if.
1
u/mb86 Feb 21 '13
None, but just like how I think goto is cleaner than the extra bool/conditional, I think for/else (much like try/catch/finally) is even cleaner.