3 ms·
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 out
by CheezeIt 5y ago
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.