News for hackers. Stuff that matters.
Re:Ask HN: Why does Linux Kernel use goto statements? by CheezeIt on Wednesday December 08, 2021 @01:47AM (#29481926)
Even if it were suboptimal in that usage (but it looks like the best choice to me), the extent of the harm would be contained to the function body. Nothing outside could “see” that a goto was used.

If you worsened the function, such as by duplicating the cleanup code and using a return statement, that would be worse, and unacceptable, but still, the harm would be contained to the function body.

There are no comments on this comment yet.