Dallas Gutauckis wrote:
> Just to be clear, this works on the assumption that we don't know the class
> name that the function resides in?
>
> I understand the search argument, but to me it only applies to functions,
> not methods. Is anyone arguing for removing the T_FUNCTION requirement on
> functions?

Even knowing the class you are calling, and assuming the common
convention of
one file per class, you may not know in which file is it implemented.
It's annoying
to go into the class, find out it's not there, grep the parent class,
and having to
repeat the process three or four levels up.
Whereas with a unique enough name, grepping the functions get all the
possible
implementations.

Plus, it's not always easy to know in which class to look something :-)

function baz( $param ) {
    $param->morlocks();
}


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

Reply via email to