Re:Goto Considered Sick (for error handling in C)
by ventana on Thursday October 29, 2026 @09:35PM
(#50298821)
And if either your linter or you personally hate goto, the acceptable trick for this in C is a "do ... while (0);" loop with a "break;" statement inside it acting exactly like "goto end;".
[ Parent
| on HN ]