Re: PHP 4.0 Bug #8428 Updated: continue doesn't pass thru a switch statement
| From: | Stanislav Malyshev | Date: | Mon, 08 Jan 2001 11:45:18 +0000 |
| Subject: | Re: PHP 4.0 Bug #8428 Updated: continue doesn't pass thru a switch statement | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-43352@lists.php.net to get a copy of this message | ||
SV>> And in C it doesn't, that is, it continues the loop enclosing the switch.
SV>> I think we should have behavior similar to C here, anything else would be
SV>> confusing. The C behavior is more useful too I think.
I think C behaviour is most confusing (which is no wonder given how many
confusing behaviours C has). Why "break" works on switch and its brother
"continue" works on enclosing loop? Oh, just because C makers were short
on words and constantly used same keywords to represent different
things? Not good enough.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115