Re: PHP 5.1
| From: | Stanislav Malyshev | Date: | Tue, 07 Jun 2005 12:25:25 +0000 |
| Subject: | Re: PHP 5.1 | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16503@lists.php.net to get a copy of this message | ||
GB>>control structures are not useful. This is not the case in PHP. A
GB>>simple example in the manual showing proper usage of break/continue
GB>>and warning to only use goto as a last resort would be sufficient for
GB>>discouraging newbies from shooting their feet off.
The problem is not only that - the problem is that some constructs might
be unsafe to jump in. Example - jumping in or out of foreach may be
very problematic with current engine (jumping in may result in crash,
jumping out - in memory leaks). And there can be more such things.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115