News for hackers. Stuff that matters.
Re:Improvements to static analysis in GCC 14 by rdtsc on Wednesday April 03, 2024 @01:20PM (#39920246)
> 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.

Re:Improvements to static analysis in GCC 14 by sirwhinesalot on Wednesday April 03, 2024 @01:27PM (#39920370)
Or 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.