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
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
