Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20893 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15729 invoked by uid 1010); 30 Nov 2005 09:50:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15711 invoked from network); 30 Nov 2005 09:50:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2005 09:50:55 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:43737] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 82/B8-14828-DF57D834 for ; Wed, 30 Nov 2005 04:50:54 -0500 Received: (qmail 18983 invoked from network); 30 Nov 2005 09:50:49 -0000 Received: from shire.zend.office (10.1.2.160) by internal.zend.office with SMTP; 30 Nov 2005 09:50:49 -0000 Date: Wed, 30 Nov 2005 11:50:49 +0200 (IST) X-X-Sender: frodo@shire.zend.office To: Sara Golemon cc: internals@lists.php.net In-Reply-To: <2B.E1.14828.4130D834@pb1.pair.com> Message-ID: References: <2B.E1.14828.4130D834@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Labeled Break (nothing at all whatsoever to do with GOTO) From: stas@zend.com (Stanislav Malyshev) 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