2 ms·
Goto is an acceptable and idiomatic way to implement error handling. If something goes wrong in an inner loop, you can just break out of all the loops and go to
by sp332 13y ago
Goto is an acceptable and idiomatic way to implement error handling. If something goes wrong in an inner loop, you can just break out of all the loops and go to the failure state.
e.g. https://stackoverflow.com/questions/788903/valid-use-of-goto-for-error-management-in-c https://stackoverflow.com/questions/788903/valid-use-of-goto...