The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
295 views

Why was “goto” originally supposed to be included in Java? [closed]

goto is still a keyword in Java, although it has no use. It was saved as a keyword in the beginning in case it would be decided to add goto functionality in the future. My question is: Why would a ...
15
votes
7answers
1k views

Does this justify goto statements?

I came across this question a second ago, and I'm pulling some of the material off of there: Is there a name for the 'break n' construct? This appears to be a needlessly complex way for ...
4
votes
3answers
938 views

Why was GOTO included in PHP 5? [closed]

I discovered some time ago that the GOTO control keyword was introduced in PHP 5.3.0. http://php.net/manual/en/control-structures.goto.php Why did it happen? What are the language design goals ...
4
votes
1answer
787 views

Does anyone have a good example/sample of “goto” spaghetti code? [closed]

I've read a lot about how GoTo was considered harmful and removed for other control structures that were more intuitive. Does anyone have a good example / sample of goto spaghetti code? Preferrably, ...
31
votes
11answers
3k views

Is this a decent use-case for goto in C?

I really hesitate to ask this, because I don't want to "solicit debate, arguments, polling, or extended discussion" but I'm new to C and want to gain more insight into common patterns used in the ...
0
votes
6answers
651 views

Syntax for goto labels

In C, C++ and some dialects of BASIC, goto labels are declared with the syntax label:. I'm working on a language that uses name: type as the syntax for variable declarations, so I'd prefer if possible ...
18
votes
10answers
4k views

Do we still have a case against the goto statement? [duplicate]

Possible Duplicate: Is it ever worthwhile using goto? In a recent article, Andrew Koenig writes: When asked why goto statements are harmful, most programmers will say something like ...
14
votes
12answers
3k views

Is it ever worthwhile using goto?

Goto is almost universally discouraged. Is this statement every worthwhile using?