note 91399 added to control-structures.goto
| From: | DouglasManley at osu1 dot php dot net | Date: | Tue, 09 Jun 2009 19:38:19 +0000 |
| Subject: | note 91399 added to control-structures.goto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156643@lists.php.net to get a copy of this message | ||
"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.
----
Server IP: 69.147.83.197
Probable Submitter: 216.158.20.130
----
Manual Page -- http://www.php.net/manual/en/control-structures.goto.php
Edit -- https://master.php.net/note/edit/91399
Del: integrated -- https://master.php.net/note/delete/91399/integrated
Del: useless -- https://master.php.net/note/delete/91399/useless
Del: bad code -- https://master.php.net/note/delete/91399/bad+code
Del: spam -- https://master.php.net/note/delete/91399/spam
Del: non-english -- https://master.php.net/note/delete/91399/non-english
Del: in docs -- https://master.php.net/note/delete/91399/in+docs
Del: other reasons-- https://master.php.net/note/delete/91399
Reject -- https://master.php.net/note/reject/91399
Search -- https://master.php.net/manage/user-notes.php