![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/8140dda6-9512-4297-ac17-d303638c90a6.png)
There’s a solid reason for goto in C.
Bringing goto into Java was (and is) idiotic.
If you’re trying to squeeze every ounce of performance out of your code then you’ll need those optimizations.
But any higher level language than C the entire point is to write easily maintainable and useful code that any idiot can go, read and update. A goto is antithetical to readability.
That’s one of the reasons it was popularized - coal miner unions wearing red bandanas. But late 19th century usage appears to be sunburnt workers.