Re: Labeled Break (nothing at all whatsoever to do with GOTO)

From: Date: Wed, 30 Nov 2005 08:15:38 +0000
Subject: Re: Labeled Break (nothing at all whatsoever to do with GOTO)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-20878@lists.php.net to get a copy of this message
On 11/30/05, Ron Korving <r.korving@xit.nl> wrote: > I loved Joao Cruz Morais idea of using the 'as' keyword in this: > > while (true) as outer_cycle { > $i = 0; > while (true) > if($i++ == 10) break outer_cycle; > } Me too - it's so stunningly obvious to understand at first sight, compared to while LABEL (cond) { Don't know of course if there are technical reasons against this proposal, just my 2 cents from the user's perspective. --Sebastian

« previous php.internals (#20878) next »