Submitted by Dacadey t3_z89cro in explainlikeimfive
Sloloem t1_iydwukt wrote
Reply to comment by cabbeer in ELI5: why is using "goto" considered to be a bad practice in programming? by Dacadey
GOTO would work fine in a single threaded environment, you can't use it in javascript just because javascript doesn't have a GOTO statement. If it did it would probably look the same as it does anywhere that does have it where you pair GOTO some_label
with a line of code reading :some_label
to give the GOTO a target line. Not sure why they didn't include it.
Viewing a single comment thread. View all comments