Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc
| From: | Sanford Whiteman | Date: | Wed, 20 Feb 2013 00:24:44 +0000 |
| Subject: | Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-66012@lists.php.net to get a copy of this message | ||
> Let's stop pretending that the vast majority of PHP users actually
> grep source code looking for
function foo. They don't.
> *They don't
> even know how to use grep.*
I don't grep as in grep, but as in "regex search that is part of my
IDE but is not also tokenizing/whateverizing/PHP-aware."
My IDE lets me search for the declaration of a method by
right-clicking class->method(), but it's only able to do that because
it knows how to find the class definition and look there (and it
doesn't use an autoloader). If I want to do a bulk search, it switches
to regex, which doesn't share that intelligence.
But I haven't upgraded to the v8 of this thing, only v7, so who
knows... I find it indispensable and I'm not going to switch to
another one because it isn't "smart enough" to do a PHP-aware bulk
search.
-- S.