Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50633 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69395 invoked from network); 27 Nov 2010 17:56:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2010 17:56:03 -0000 Authentication-Results: pb1.pair.com header.from=pierrick@webstart.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pierrick@webstart.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webstart.fr from 209.85.214.170 cause and error) X-PHP-List-Original-Sender: pierrick@webstart.fr X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:61584] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/27-32860-13641FC4 for ; Sat, 27 Nov 2010 12:56:03 -0500 Received: by iwn4 with SMTP id 4so894087iwn.29 for ; Sat, 27 Nov 2010 09:55:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.35.202 with SMTP id q10mr3184461ibd.88.1290880558490; Sat, 27 Nov 2010 09:55:58 -0800 (PST) Received: by 10.231.15.196 with HTTP; Sat, 27 Nov 2010 09:55:58 -0800 (PST) In-Reply-To: <1290879624.7033.826.camel@guybrush> References: <1290879624.7033.826.camel@guybrush> Date: Sat, 27 Nov 2010 12:55:58 -0500 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: PHP internals list Content-Type: multipart/alternative; boundary=0003255730b222e41004960c8d06 Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: pierrick@webstart.fr (Pierrick Charron) --0003255730b222e41004960c8d06 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable +1 2010/11/27 Johannes Schl=FCter > 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 > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0003255730b222e41004960c8d06--