Re: GOTO operator
| From: | Shaun Thomas | Date: | Fri, 30 Jul 2004 21:11:04 +0000 |
| Subject: | Re: GOTO operator | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11735@lists.php.net to get a copy of this message | ||
Hartmut Holzgraefe wrote:
The JAVA approach is even superior to PHPs "break n;" where n has to be an integer and you have to be very carefull to not wrap another loop around the break but within the loop supposed to be brokenVery true. Labeled breaks would be the "goto" that people seem to want here, and it would avoid the whole problem of, "Do I need a break 2 here, or a break 3?" Maybe what we really need is an extension of the break statement to include labels instead of adding goto? -- Shaun M. Thomas INN Database Administrator Phone: (309) 743-0812 Fax : (309) 743-0830 Email: sthomas@townnews.com Web : www.townnews.com