Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50641 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38305 invoked from network); 27 Nov 2010 21:23:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2010 21:23:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@iki.fi; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jani.taskinen@iki.fi; sender-id=pass Received-SPF: pass (pb1.pair.com: domain iki.fi designates 213.243.153.188 as permitted sender) X-PHP-List-Original-Sender: jani.taskinen@iki.fi X-Host-Fingerprint: 213.243.153.188 filtteri5.pp.htv.fi Linux 2.6 Received: from [213.243.153.188] ([213.243.153.188:57285] helo=filtteri5.pp.htv.fi) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/91-29052-2B671FC4 for ; Sat, 27 Nov 2010 16:22:59 -0500 Received: from localhost (localhost [127.0.0.1]) by filtteri5.pp.htv.fi (Postfix) with ESMTP id 9A8485A6141; Sat, 27 Nov 2010 23:22:55 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp4.welho.com ([213.243.153.38]) by localhost (filtteri5.pp.htv.fi [213.243.153.188]) (amavisd-new, port 10024) with ESMTP id M1WhTUvh+Mxk; Sat, 27 Nov 2010 23:22:55 +0200 (EET) Received: from [192.168.0.10] (cs27030009.pp.htv.fi [89.27.30.9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp4.welho.com (Postfix) with ESMTPS id 42E145BC010; Sat, 27 Nov 2010 23:22:55 +0200 (EET) Message-ID: <4CF176B1.6050307@iki.fi> Date: Sat, 27 Nov 2010 23:22:57 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fi; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= CC: PHP internals list References: <1290879624.7033.826.camel@guybrush> In-Reply-To: <1290879624.7033.826.camel@guybrush> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: jani.taskinen@iki.fi (Jani Taskinen) +1 for PHP 7.0. :) Stuff like this accumulating in trunk kinda makes it more and more something else than minor release.. --Jani 27.11.2010 19:40, Johannes Schlüter kirjoitti: > 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 > > >