RE: Re: Namespaces: Technical proposal

php.internals

Ford, Mike [LSS]

20 years ago
On 29 November 2005 15:27, Sara Golemon wrote:
> > Just wondering. There's another thread about goto and labels > > running as well. If they vote for something like: > > > > LABEL:while (cond) { > > > > } > > > > Wouldn't this add another technical diffuculty with using ':' as a > > namespace seporator? > > > Fortunately this is another new feature so there's no old > code to break. > It's simply a matter of giving namespace:class precedence > over label:expr. > > Though yes, preventing that duality of meaning is a good thing.
That's one reason I suggested possible alternatives such as: while LABEL (cond) { or while (cond) LABEL { I've no particular preference for any one variation -- whatever parses easiest! Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm