The goto tag has no wiki summary.
4
votes
3answers
528 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 ...
3
votes
1answer
415 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, ...
30
votes
11answers
2k 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
378 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
2k 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 ...
17
votes
16answers
2k views
What's the most acceptable use of 'goto' you've ever seen? [closed]
We all know that goto is evil, goto is considered harmful, etc. But it's still around (presumably) because of the rare cases where it can be used as part of an awesome, elegant algorithm.
What's the ...
13
votes
12answers
2k views
Is it ever worthwhile using goto?
Goto is almost universally discouraged. Is this statement every worthwhile using?