>If anything it's the old "Goto statement considered harmful" that's a little too naive.
No, people who didn't read it and just repeat the title without knowing what he was talking about may be too naive, but the original point was not.
No, people who didn't read it and just repeat the title without knowing what he was talking about may be too naive, but the original point was not.
Hardly surprising. Gotos will be found by the hundrends or thousands in C projects like compilers, kernels etc.
It's used for localized consolidated error handling, but also for stuff like parsing code (bison generates tons of gotos IIRC), state machines, etc.
If anything it's the old "Goto statement considered harmful" that's a little too naive.