3 ms·
In this case goto is used as a form of "exception" handling, which is a perfectly fine use case for goto if you have an imperative language like C without excep
by DasIch 14y ago
In this case goto is used as a form of "exception" handling, which is a perfectly fine use case for goto if you have an imperative language like C without exceptions or exception handling mechanisms. In fact it would probably be bad style not to use goto in this case.
If you have a better way to express the control flow you should use it instead though.