Hacker News new | ask | show | jobs
by tonysuper 4196 days ago
goto is perfectly acceptable in C code. The most common use case is for cleaning up after errors before returning, although they're also used to break out of nested loops cleanly.

goto is harmful when used improperly but fine everywhere else.

1 comments

I didn't mean it's a bad thing, it was a reply to some blanket statement.
I think you missed that fpgeek was turning exDM69's comment around on itself to put goto and spinlock into the same category.

fpgeek wasn't actually making a statement about goto