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
signature.asc
Description: Message signed with OpenPGP using GPGMail