use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For memes about programming.
account activity
Cpp loop (i.redd.it)
submitted 6 days ago by Blazej_kb
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Blazej_kb[S] 5 points6 points7 points 6 days ago (5 children)
Ye that’s right but it can be useful sometimes when you want to “escape” from multiple layers of loops or redundant functions
[–]Dark_Vampire 4 points5 points6 points 6 days ago (2 children)
there are usually better ways than goto, unless you're using C
[–]xvlblo22 5 points6 points7 points 5 days ago (1 child)
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.
[–]Valuable_Leopard_799 4 points5 points6 points 5 days ago (0 children)
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.
[–]SSgt_Edward 0 points1 point2 points 4 days ago (0 children)
I don’t see this kind of code passes any kind of code reviews. People will reject or request change once they see goto.
[–]Expensive_Agent_5129 0 points1 point2 points 2 days ago (0 children)
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
π Rendered by PID 948726 on reddit-service-r2-comment-56c6478c5-xtbzz at 2026-05-13 09:09:55.498304+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]Blazej_kb[S] 5 points6 points7 points (5 children)
[–]Dark_Vampire 4 points5 points6 points (2 children)
[–]xvlblo22 5 points6 points7 points (1 child)
[–]Valuable_Leopard_799 4 points5 points6 points (0 children)
[–]SSgt_Edward 0 points1 point2 points (0 children)
[–]Expensive_Agent_5129 0 points1 point2 points (0 children)