Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc

From: Date: Tue, 19 Feb 2013 23:07:51 +0000
Subject: Re: Dropping requirement for `function` keyword for methods in classes/interfaces/etc
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-65988@lists.php.net to get a copy of this message
On Tue, 19 Feb 2013 18:02:57 -0000, Christopher Jones <christopher.jones@oracle.com> wrote:
What about including a few basic examples aka test cases in your patch? If the feature is accepted, you'll need to include a LOT of testcases. Chris
Hi Chris, this code could be a basic case (just for the sake of understanding) https://gist.github.com/nikita2206/4988665 But I will add an actual tests if it's going to receive some support. On Tue, 19 Feb 2013 18:41:41 -0000, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
On 02/19/2013 02:39 PM, Nikita Nefedov wrote: About 20-30 times every single day. -Rasmus
Hi Rasmus, Are you grepping for all the functions or you are grepping just for some specific function? If so, you are likely already know what visibility this function has, so couldn't you grep for public %functionName% instead of function %functionName%? At the end, you can always use `grep '(function|public|private|protected) functionName' file`, and if it's long to type, you can make sh script, or even alias.

« previous php.internals (#65988) next »