3 ms·
> There's nothing wrong with simple usages of goto Indeed a like a few gotos here and there for doing cleanup toward the end of the function.
by rdtsc 3y ago
> There's nothing wrong with simple usages of goto
Indeed a like a few gotos here and there for doing cleanup toward the end of the function.
- sirwhinesalot 3y agoOr to break out of nested loops. The problem is with unstructured goto spaghetti making the code impossible to follow without essentially running it in your head (or a debugger). Goto + Switch (or the GCC computed goto extension) is also a wonderful way to implement state machines.