Hacker News new | ask | show | jobs
by zeroonetwothree 955 days ago
The first file I looked at in that codebase has a “goto” (as well as some IMO hacky-ish logic). Now I’m not going to say this is never right (but it probably isn’t), but it takes a lot of hubris to claim you are “striving for perfection” and I just don’t see perfect code using goto, sorry.
1 comments

The goto's are for proper cleanup on error.

All of the options for doing so in C are awful; I just think goto is the least bad option. Otherwise, you get if statements that keep nesting, deeper and deeper.

And what's the hacky-ish logic you're talking about?