note 91399 deleted from control-structures.goto by philip
| From: | philip@php.net | Date: | Tue, 16 Jun 2009 14:19:02 +0000 |
| Subject: | note 91399 deleted from control-structures.goto by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156919@lists.php.net to get a copy of this message | ||
Note Submitter: Douglas Manley
----
"goto" is a very powerful construct; it can prevent unnecessary nesting and can save
hundreds of lines of code in complex functions in which recursion or modularization is not
desireable. Remember, all loops are, in the end, simply wrapped "goto" statements.
On the topic of backward compatibility, no PHP-5-specific constructs are backward compatible. This
is called progress. With "goto", many algorithms can now easily be ported to PHP.