Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50674 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14379 invoked from network); 28 Nov 2010 22:51:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2010 22:51:52 -0000 Authentication-Results: pb1.pair.com header.from=djotto@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=djotto@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: djotto@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:39933] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/A3-18134-60DD2FC4 for ; Sun, 28 Nov 2010 17:51:51 -0500 Received: by vws11 with SMTP id 11so1000215vws.29 for ; Sun, 28 Nov 2010 14:51:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=kt1SILnpZBMSoEQ8KThwkck0BTX0oYMNZ02766fFLv8=; b=xS69dmdTUbt+0YV0lS4fiqy7W2/pTxbElofQViZT7B0L5eflE3yOXsdNxHLySlsBRU AFTgsLRsxsqH+hQCcP/yZVgZd88k35E9RAM2xTBYwNlHDQt4WEXXufWNXnbs30Vm4eHe 3eQ6BsjRzjbFeLtQJTfAkH54XVu022AlSZ038= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=ktROmXXoJLC1VRkkYt3iT6bpHGPjnyKKOEkU35KJZCnmiSNM1E07fMIsEGwPwjG0aK U0p1hIMIgSp9SwmhNepuu6CR6WWx2gmVekQi5BuEmTa6Uy8gP94RAo+wbUWReTfu/DVk tjMYxNcJLqHFcl70G9CU6FDC4gdceHF9Zr7tY= MIME-Version: 1.0 Received: by 10.220.186.140 with SMTP id cs12mr898440vcb.187.1290984708050; Sun, 28 Nov 2010 14:51:48 -0800 (PST) Sender: djotto@gmail.com Received: by 10.220.182.2 with HTTP; Sun, 28 Nov 2010 14:51:47 -0800 (PST) In-Reply-To: References: <1290879624.7033.826.camel@guybrush> <4CF27AAC.9010704@divbyzero.net> <4CF28CFC.2060204@gmail.com> Date: Sun, 28 Nov 2010 22:51:47 +0000 X-Google-Sender-Auth: A9bkZn13dmiEx85UqHvoBTsGjzM Message-ID: To: Dallas Gutauckis Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: phpmail@jawbone.freeserve.co.uk (David Otton) 2010/11/28 Dallas Gutauckis : > I understand the concern from above, but I don't agree with it > fundamentally. The kind of practice suggested by this search mechanic tel= ls > me that either there is lack of or little documentation, and lack of or > little understanding of the codebase in which the code resides thereby > making this argument flawed based solely on the assumption that the major= ity > of code is (or should be) poorly maintained/documented. Yes. Absolutely. The majority of code /is/ poorly maintained and documented. I work with scrappy codebases that have seen dozens of devs over their lifetimes, and this patch removes one of the few certainties - that 'grep "function X"' is absolutely the fastest way to find the place where X is declared. I'm not an internals guy, so I can't vote, but I will ask you to reconsider this one. 2010/11/28 Ross Masters : > From what I understand T_FUNCTION would be optional, rather than removed > altogether, is this the case?=C2=A0This would allow those who want to use= it the > option of using it and would not break existing code. My worry is that the last-guy-but-five used the new syntax and now I have to apply a fix to his code. Yeah, I'll find the function on my second/third attempt, but it is an impediment.