Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50662 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60149 invoked from network); 28 Nov 2010 15:52:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2010 15:52:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=martin@divbyzero.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=martin@divbyzero.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain divbyzero.net from 87.230.111.147 cause and error) X-PHP-List-Original-Sender: martin@divbyzero.net X-Host-Fingerprint: 87.230.111.147 mx.bauer-kirch.de Linux 2.6 Received: from [87.230.111.147] ([87.230.111.147:43119] helo=mx.bauer-kirch.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/A6-16104-2BA72FC4 for ; Sun, 28 Nov 2010 10:52:22 -0500 Received: by mx.bauer-kirch.de with ESMTP id 1PMjXz-0003OA-Vc; Sun, 28 Nov 2010 16:52:16 +0100 Message-ID: <4CF27AAC.9010704@divbyzero.net> Date: Sun, 28 Nov 2010 16:52:12 +0100 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Gustavo Lopes CC: internals@lists.php.net References: <1290879624.7033.826.camel@guybrush> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: martin@divbyzero.net (Martin Jansen) On 28.11.10 16:14, Gustavo Lopes wrote: > On Sun, 28 Nov 2010 14:58:13 -0000, David Otton > wrote: >> As a plea on behalf of maintenance coders dealing with large, messy >> codebases, please, please don't impact our ability to run 'grep -rs >> "function functionName" *', or hit F8, or whatever your IDE's >> equivalent is. > > IDEs would not be a problem, they would certainly be updated to locate > definitions under the new syntax. As to grep, surely you could use > another regular expression, perhaps egrep -rs "(public|function) > functionName" or something similar. At least one would have to use the following expression: (public|protected|private|final|static|function) functionName - Martin, -1