note 91539 deleted from control-structures.goto by danbrown
| From: | danbrown@php.net | Date: | Tue, 16 Jun 2009 13:23:03 +0000 |
| Subject: | note 91539 deleted from control-structures.goto by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156914@lists.php.net to get a copy of this message | ||
Note Submitter: marc at solcon dot nl
Reason: useless
----
Never use goto if you don't have to. The goto statement is one of the most evil coding concepts
ever conceived. Using it makes code highly unreadable because it breaks the natural flow of a
function. Although it might not be an issue for the original author of goto-ridden code, for other
coder's it's hell.
Never, ever, use goto, unless you really have no other choice. You'll do your colleagues a
favor, and yourself as well if you ever need to come back to your code years later.