Hacker News new | ask | show | jobs
by int_19h 1254 days ago
Cleanup goto-style is hard to describe as a "rat's nest", since all the gotos in the same function go to the same label at the end that just does all the cleanup before returning. There's nothing clever about it, and many codebases wrap it into macros and such to make the syntax more concise and the intent explicit.
1 comments

Cleanup is mostly fine but people see the goto fail then start using them for other things because there's already a goto there and thus congruent