note 94260 added to control-structures.do.while
| From: | rob at robnugen dot com | Date: | Mon, 26 Oct 2009 01:38:50 +0000 |
| Subject: | note 94260 added to control-structures.do.while | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162092@lists.php.net to get a copy of this message | ||
I'm surprised to see the use of a break inside a do-while as a "hack."
The documentation of the for loop includes an example using break, but is not described as a hack.
Even the documentation for break doesn't say it's a hack.
Since I quit coding in BASIC, I've always thought goto is a hack...
----
Server IP: 69.147.83.197
Probable Submitter: 61.115.114.118
----
Manual Page -- http://www.php.net/manual/en/control-structures.do.while.php
Edit -- https://master.php.net/note/edit/94260
Del: integrated -- https://master.php.net/note/delete/94260/integrated
Del: useless -- https://master.php.net/note/delete/94260/useless
Del: bad code -- https://master.php.net/note/delete/94260/bad+code
Del: spam -- https://master.php.net/note/delete/94260/spam
Del: non-english -- https://master.php.net/note/delete/94260/non-english
Del: in docs -- https://master.php.net/note/delete/94260/in+docs
Del: other reasons-- https://master.php.net/note/delete/94260
Reject -- https://master.php.net/note/reject/94260
Search -- https://master.php.net/manage/user-notes.php