Re: Suggestion

From: Date: Thu, 01 Sep 2016 01:06:45 +0000
Subject: Re: Suggestion
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-95528@lists.php.net to get a copy of this message
On Aug 31, 2016, at 11:49, Yasuo Ohgaki <yohgaki@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

Attachment: [application/pgp-signature] Message signed with OpenPGP using GPGMail signature.asc
« previous php.internals (#95528) next »