Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78198 invoked from network); 2 Dec 2010 16:29:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2010 16:29:05 -0000 Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:39684] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/D0-07252-249C7FC4 for ; Thu, 02 Dec 2010 11:28:57 -0500 Received: from think.site (unknown [212.42.62.198]) by daylessday.org (Postfix) with ESMTPSA id A8149BFA0A2 for ; Thu, 2 Dec 2010 19:28:42 +0300 (MSK) Message-ID: <4CF7C944.8000909@daylessday.org> Date: Thu, 02 Dec 2010 19:28:52 +0300 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101026 SUSE/3.0.10 Thunderbird/3.0.10 MIME-Version: 1.0 To: internals@lists.php.net References: <1290879624.7033.826.camel@guybrush> In-Reply-To: <1290879624.7033.826.camel@guybrush> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: tony@daylessday.org (Antony Dovgal) -1 On 11/27/2010 08:40 PM, Johannes Schlüter wrote: > Hi, > > every now and then while writing classes I forget to add the "function" > keyword between my visibility modifier and the method name in a class > declaration. I don't think it is required for readability and it is not > needed by the parser to prevent conflicts, I therefore propose the > following RFC incl. patch to allow writing > > class Foo { > public bar() { > echo "Hello World"; > } > } > > Without T_FUNCTION token. In my opinion an access modifier /public, > private protected, static, final) should still be required for keeping > readability. > > RFC: http://wiki.php.net/rfc/optional-t-function > Patch: http://schlueters.de/~johannes/php/zend_optional_t_function.diff > > johannes > > > -- Wbr, Antony Dovgal --- http://pinba.org - realtime statistics for PHP