Are there any legitimate use-cases for “goto” in a language that supports loops and functions?

I’ve long been under the impression that goto should never be used if possible. However, while perusing libavcodec (which is written in C) the other day, I was surprised to notice multiple uses of it. Is it ever advantageous to use goto in a language that supports loops and functions? If so, why? Please provide … Read more

GOTO still considered harmful? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 7 years ago. Improve this question Everyone is aware of Dijkstra’s Letters to the editor: go to statement considered harmful (also here … Read more