Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77768 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42338 invoked from network); 3 Oct 2014 21:00:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2014 21:00:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.245 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.245 imap11-3.ox.privateemail.com Received: from [198.187.29.245] ([198.187.29.245:50929] helo=imap11-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/90-39134-57E0F245 for ; Fri, 03 Oct 2014 17:00:37 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id AB6AE8800DB; Fri, 3 Oct 2014 17:00:33 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KGSYjFc8MNkY; Fri, 3 Oct 2014 17:00:33 -0400 (EDT) Received: from [172.20.10.4] (dab-yat1-h-13-7.dab.02.net [82.132.214.167]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id B499E8800E6; Fri, 3 Oct 2014 17:00:31 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: <42.58.10205.32DCE245@pb1.pair.com> Date: Fri, 3 Oct 2014 21:57:47 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: <42.58.10205.32DCE245@pb1.pair.com> To: Thomas Gossmann X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods? From: ajf@ajf.me (Andrea Faulds) On 3 Oct 2014, at 17:21, Thomas Gossmann wrote: > I was wondering if it is possible to deprecate/remove the function = keyword from class methods in php7 or at least make it optional when one = of the visibility keywords is present? >=20 > I feel like writing a completely unnecessary keyword each time I write = a new method for a class. >=20 > I guess this was a discussion earlier, though I wasn't able to find = anything about it. Would love to hear, what pdt-internals (re-)think = about that topic. Me and Pierre have discussed this before, Pierre was in favour of it = last time we talked about it. I=92d certainly be in favour of allowing = `function` to be omitted when there=92s a visibility specifier, like so: public foo() {} public static foo() {} Easy to implement, too. What are the list=92s thoughts? I don=92t think = it really hampers readability much. -- Andrea Faulds http://ajf.me/