Hacker News
new
top
best
ask
show
job
Goto Considered Sick (for error handling in C)
(
thestateofinahaze.net
)
3 points
by
birdculture
5 hours ago
1 comment
ventana
4 hours ago
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;".