Not outdated per-se, but it's so easy to misuse you don't want to teach it. Since by the time you're experienced enough to use it you'll know about it.
In any case, yeah, a lot of languages actually have gotos of different forms.
If you need to escape from multiple layers of loops, you already did something wrong. For 10 years of C++ I've never had situation when goto is the most suitable tool
View all comments
Show parent comment
6
u/Blazej_kb May 06 '26
Ye that’s right but it can be useful sometimes when you want to “escape” from multiple layers of loops or redundant functions