3 ms·
Using goto for managing cleanup after an error condition results in cleaner, easier to understand and maintain code. This is a specific idiom that is easy to re
by jdblair 8y ago
Using goto for managing cleanup after an error condition results in cleaner, easier to understand and maintain code. This is a specific idiom that is easy to recognize.
On the other hand, using goto to jump back in the program flow, or multiple branching gotos are both asking for trouble.