Re:If goto statements are bad why does linux src have more t...
by vardump on Tuesday December 16, 2014 @10:35PM
(#8760950)
Gotos are nowhere near as hard to debug as exceptions.
Re:If goto statements are bad why does linux src have more t...
by pontifexa on Wednesday December 17, 2014 @05:46PM
(#8764851)
How's that? To debug GOTOs you have to place breakpoints on each possible detection of error (or at a shared trampoline). To debug exceptions, you just enable first-chance exception handling for the kind of exception you're interested in and you're done.
So if your code gets executed millions of times per second, like in some OS kernel, it may be wise to use GOTOs.
Otherwise, stay away.