note 91421 added to control-structures.goto

From: Date: Tue, 09 Jun 2009 22:20:20 +0000
Subject: note 91421 added to control-structures.goto
Groups: php.notes 
Request: Send a blank email to php-notes+get-156686@lists.php.net to get a copy of this message
The goto statement is indeed very powerful. Especially when used with the switch statement which is explicitly not allowed in php. The 2nd powerful use of the goto statement is in creating nearly unreadable code and completely unmaintainable applications. I'm not suggesting that this control structure needs to be removed from the language. But new coders do need to be warned against the superfluous use of this construct. In most cases, heavy use of the goto statement means that the problem being solved has not been properly understood or analyzed. ---- Server IP: 69.147.83.197 Probable Submitter: 71.82.142.14 ---- Manual Page -- http://www.php.net/manual/en/control-structures.goto.php Edit -- https://master.php.net/note/edit/91421 Del: integrated -- https://master.php.net/note/delete/91421/integrated Del: useless -- https://master.php.net/note/delete/91421/useless Del: bad code -- https://master.php.net/note/delete/91421/bad+code Del: spam -- https://master.php.net/note/delete/91421/spam Del: non-english -- https://master.php.net/note/delete/91421/non-english Del: in docs -- https://master.php.net/note/delete/91421/in+docs Del: other reasons-- https://master.php.net/note/delete/91421 Reject -- https://master.php.net/note/reject/91421 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156686) next »