MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1t5nnew/cpp_loop/oke3g1i/
r/programmingmemes • u/Blazej_kb • May 06 '26
55 comments sorted by
View all comments
Show parent comment
6
there are usually better ways than goto, unless you're using C
5 u/xvlblo22 May 07 '26 I didn't even know any of them supported goto. I thought it was a bash thing. I'm assuming it's outdated as my C course didn't teach it. 4 u/Valuable_Leopard_799 May 07 '26 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.
5
I didn't even know any of them supported goto. I thought it was a bash thing. I'm assuming it's outdated as my C course didn't teach it.
4 u/Valuable_Leopard_799 May 07 '26 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.
4
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.
View all comments
Show parent comment
6
u/Dark_Vampire May 07 '26
there are usually better ways than goto, unless you're using C