Re: Support for keywords where possible

From: Date: Thu, 12 Sep 2013 07:10:44 +0000
Subject: Re: Support for keywords where possible
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 11 September 2013 23:21, Bob Weinand <[email protected]> wrote:
> Hi!
>
> I tried to widen the naming possibilities by allowing to use keywords as identifiers (for
> function names, class names, label (goto) names, ...) where possible. It doesn't break any BC.
>
> Furthermore when BC needs to be broken in future for new keywords, it will have a smaller
> impact as most usages of the new keyword then still work.

I like the idea, but it looks like the patch defers many string
comparisons from the parser to strcmps. Do you have performance
comparisons of running e.g. a framework, which uses those keywords a
lot?

-- 
Regards,
Mike


Thread (40 messages)

« previous php.internals (#69082) next »