Submitted by Dacadey t3_z89cro in explainlikeimfive
carlovski99 t1_iyc60gq wrote
Reply to comment by Megalocerus in ELI5: why is using "goto" considered to be a bad practice in programming? by Dacadey
Or even worse, comefrom https://en.m.wikipedia.org/wiki/COMEFROM
Megalocerus t1_iydadd3 wrote
Yes, that's far worse, but I never encountered that in real code. The rules for using alter were:
-
Don't use it.
-
If you use it, have any GOTO referenced by it leave off the destination in code. Thus, it was just GOTO. by itself on the line with a period, to clue the programmer it was a trap.
Viewing a single comment thread. View all comments