note 91539 added to control-structures.goto

From: Date: Tue, 16 Jun 2009 08:06:53 +0000
Subject: note 91539 added to control-structures.goto
Groups: php.notes 
Request: Send a blank email to php-notes+get-156908@lists.php.net to get a copy of this message
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. ---- Server IP: 83.137.20.135 Probable Submitter: 89.146.25.44 ---- Manual Page -- http://www.php.net/manual/en/control-structures.goto.php Edit -- https://master.php.net/note/edit/91539 Del: integrated -- https://master.php.net/note/delete/91539/integrated Del: useless -- https://master.php.net/note/delete/91539/useless Del: bad code -- https://master.php.net/note/delete/91539/bad+code Del: spam -- https://master.php.net/note/delete/91539/spam Del: non-english -- https://master.php.net/note/delete/91539/non-english Del: in docs -- https://master.php.net/note/delete/91539/in+docs Del: other reasons-- https://master.php.net/note/delete/91539 Reject -- https://master.php.net/note/reject/91539 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156908) next »