Hi,

On 10/18/07, Johannes Schlüter <[EMAIL PROTECTED]> wrote:

> On Thu, 2007-10-18 at 12:08 +0200, Pierre wrote:
> > I would prefer Stan's patch to allow keyword to be used as
> > class/method/function name. At the very least (the patch has
> > unsolvable issues), I have to agree with Andi, we should just go with
> > "use" (codesearch returns less than 10 results :).
>
> The point about using "use" is that "use" is already a reserved keyword
> in PHP - therefore we can't break anything by using "use" for
> namespaces.

Oh, I missed this point. So what are we waiting for to switch? It will
ease our life to test our existing code under 5.3 without having to
create specific branches (or breaking bc).

>So in this single case we have a chance of using a keyword
> withou breaking anything (while we still might break stuff due to the
> "namespace" keyword) :-)

The namespace keyword is less a problem than import. It is mostly used
in areas where php5+ provides native solution (for example xml or soap
like in ezpublish, mostly php4 code).

--Pierre

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to