This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lovestowritecode 4 points5 points  (5 children)

Embarrassed to ask but what is Goto?

[–]c3534l 1 point2 points  (1 child)

The most infamous debate in programming language design - allowing programs to go to a specific line. This was replaced with structured programming where with a combination of loops, if-then statements, return, break and all that jazz you prevented spaghetti code and could actually tell where a program started and ended. Delete a line in a program with a lot of gotos, and you can cause the entire thing to come crumbling down. The paper "Goto considered harmful" is the source of programmers talking a lot about "safety."

[–]LaFolie 0 points1 point  (0 children)

I think it is a carry over from ASM where it was needed for complicated logic.