Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50640 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36514 invoked from network); 27 Nov 2010 21:10:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2010 21:10:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:51027] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/31-29052-BD371FC4 for ; Sat, 27 Nov 2010 16:10:51 -0500 Received: by gxk20 with SMTP id 20so1608872gxk.29 for ; Sat, 27 Nov 2010 13:10:49 -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; bh=F1QheXcbLL1w8R8q35M09LB+QDj6bpzvJlyx6Gwtfro=; b=mXjezyvP/BYVGqLoCaNgiSsOTXUEXuiDoC5ezQIK2rzsS2cAZUrMETRAGG/xvwS2CE ofR2uKFIDj7gqE8/7EMFp5YLJBrPZ6vW/CE9fcW1gJQu3CwMcWpITAJFLpFYaHto7w9q FSw/2zcSUuvjfMfbtGVO56KZORYy2Xo/oRsfw= 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; b=q9JuJgACnbayD3ZgO7wlG1lY5e27WeYl+H8Gho1h03xTxCz/9X7HvzPqfiBhtSFoLL b4nojOoKRoN+QgBoKbjJ0wEGsxvFoOfYD09TUakZlbP98fd5FDf382EsOBiEaEa0/fAw iI5nnxLsa+gM+SYoRGDP1VIl9hz0ngh4Pvp1I= MIME-Version: 1.0 Received: by 10.90.39.6 with SMTP id m6mr6546219agm.60.1290891811089; Sat, 27 Nov 2010 13:03:31 -0800 (PST) Sender: tyra3l@gmail.com Received: by 10.90.53.4 with HTTP; Sat, 27 Nov 2010 13:03:31 -0800 (PST) In-Reply-To: <1290879624.7033.826.camel@guybrush> References: <1290879624.7033.826.camel@guybrush> Date: Sat, 27 Nov 2010 22:03:31 +0100 X-Google-Sender-Auth: XvJ5DgwxNmBK9OkD_YEfR0tqjbM Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: PHP internals list Content-Type: multipart/alternative; boundary=0016361e7b44d7ecd304960f2bb1 Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: info@tyrael.hu (Ferenc Kovacs) --0016361e7b44d7ecd304960f2bb1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2010/11/27 Johannes Schl=C3=BCter > 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 > > Happened with me many times also. +1 for the feature. Tyrael --0016361e7b44d7ecd304960f2bb1--