Submitted by Dacadey t3_z89cro in explainlikeimfive
Milnoc t1_iybpcua wrote
Reply to comment by xzt123 in ELI5: why is using "goto" considered to be a bad practice in programming? by Dacadey
C/C++. But as I've said, I use them very sparingly to kick the process out of a nested loop or switch block into a general maintenance chunk of code. I would never use it to jump around within a loop or switch block.
xzt123 t1_iybr5of wrote
There's appropriate uses of goto, in C/C++ with nested loops and performance matters, sounds like a reasonable use.
Viewing a single comment thread. View all comments