Re: GOTO and/or BREAK LABEL

From: Date: Thu, 09 Mar 2006 04:48:28 +0000
Subject: Re: GOTO and/or BREAK LABEL
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Please, Xuefer!  Your vote was already recorded, shhh!

----- Original Message ----- From: "Xuefer" <[email protected]>
To: "Ford, Mike" <[email protected]>
Cc: "Dmitry Stogov" <[email protected]>; <[email protected]>
Sent: Thursday, March 09, 2006 5:19 AM
Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL


If the "Java-like" syntax is seen as confusing, what about, as in some other languages, interpolating the label into the for/foreach/while statement: for (....) label {...} or for label (...) {...}
a. label: for (....) { break label; } AND label: { for (....) { break label; } } (see http://www.rgagnon.com/javadetails/java-0500.html ) b. for (....) label { break label; } c. for (....) { break label; } label: ok, i was +1 for c, but +1 for b now. only use "Java-like" syntax if "goto" will never be implemented


Thread (106 messages)

« previous php.internals (#22266) next »