Re: Labeled Break (nothing at all whatsoever to do with GOTO)
| From: | Stanislav Malyshev | Date: | Wed, 30 Nov 2005 09:50:49 +0000 |
| Subject: | Re: Labeled Break (nothing at all whatsoever to do with GOTO) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20893@lists.php.net to get a copy of this message | ||
SG>>Actual labeled breaks. Not the break+jump that was proposed earlier in the
I think the idea is OK, though I don't like a syntax. There is a standard
for/while syntax which is used by a lot of procedural languages, and I see
no reason to break it. I see nothing wrong with using FOO: for label.
SG>>* Labels can be repeated by siblings. I'm not married to this, and it
I don't think this is really needed, though it's doable and has some logic
in it (after all, once the labelled block ends, the label is not longer
existing).
SG>>* Labeled breaks also apply to continue; For example:
yes, I think it's a good way to do it.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115