On Thu, Sep 1, 2016 at 3:06 AM, Robert Williams <rewilli...@newtekone.com>
wrote:

> On Aug 31, 2016, at 11:49, Yasuo Ohgaki <yohg...@ohgaki.net> wrote:
>
>
> I remember an argument that "function" is useful to "grep functions".
> This is true, but we have tokenizer and tokenizer does better job.
> e.g. It excludes functions inside comments.
>
> It may be time to consider simplifying things.
>
>
> Perhaps, but I would typically be doing something like this when I’ve
> opened a PHP file in a basic text editor and am trying to find where a
> function is declared rather than used. The tokenizer is of no help in this
> use-case. Plus, I happen to like having a consistent item to lock onto
> visually — always hated missing that in languages that don’t have it. (For
> the same reason, I much prefer the function’s return type at the end rather
> than at the beginning of the line.)
>
> --
> Bob Williams
>


Yeah, and I would question:

 1. why are you editing with a plaintext editor and searching stuff like
that? Are you in a super-hurry? Seems like a 0.001% scenario
 2. why do you need to search for functions in a class? Just what kind of
monstrous abomination are you working on?

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

Reply via email to