Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50659 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50347 invoked from network); 28 Nov 2010 15:17:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2010 15:17:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:40750] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/C4-16104-C8272FC4 for ; Sun, 28 Nov 2010 10:17:33 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 5323A700043D for ; Sun, 28 Nov 2010 15:17:29 +0000 (WET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id kLaU7Jns2L+R for ; Sun, 28 Nov 2010 15:17:29 +0000 (WET) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 1B7507000425 for ; Sun, 28 Nov 2010 15:17:29 +0000 (WET) Received: from cataphract (cataphract.cata.lo.geleia.net [IPv6:2001:470:94a2:1:b488:8610:90e4:7835]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 39D13200707D for ; Sun, 28 Nov 2010 15:17:28 +0000 (WET) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: internals@lists.php.net References: <1290879624.7033.826.camel@guybrush> Date: Sun, 28 Nov 2010 15:14:00 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_IST?= Message-ID: In-Reply-To: User-Agent: Opera Mail/10.63 (Win32) Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Sun, 28 Nov 2010 14:58:13 -0000, David Otton = wrote: > 2010/11/27 Johannes Schl=C3=BCter : > >> Without T_FUNCTION token. In my opinion an access modifier /public, >> private protected, static, final) should still be required for keepin= g >> readability. > > 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 anoth= er = regular expression, perhaps egrep -rs "(public|function) functionName" o= r = something similar. This seems like a false problem, it's not like it's hard to locate = definitions in C or Java codebases... -- = Gustavo Lopes