Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65979 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12327 invoked from network); 19 Feb 2013 17:52:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 17:52:52 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:58366] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/72-17768-2FBB3215 for ; Tue, 19 Feb 2013 12:52:51 -0500 Received: from [192.168.2.20] (ppp-88-217-85-78.dynamic.mnet-online.de [88.217.85.78]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 3C12F65D04; Tue, 19 Feb 2013 18:52:48 +0100 (CET) To: Nikita Nefedov Cc: "internals@lists.php.net" In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 19 Feb 2013 18:53:40 +0100 Message-ID: <1361296420.2355.71.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Tue, 2013-02-19 at 21:44 +0000, Nikita Nefedov wrote: > Hi! > > As someone mentioned in the thread about short syntax for closures, we > could also drop requirement for `function` keyword when defining/declaring > methods in classes, interfaces or traits. I proposed this in November '10: http://news.php.net/php.internals/50628 I agreed to the conclusion that the "function" keyword provided a nice way to grep for functions when handling foreign code and leaving it out only provides little improvement in less typing. Please provide new arguments for a new discussion. (That thread was rather long) And as a general note I'd like to remind you all about Rasmus' recent mail: http://news.php.net/php.internals/65894 - In my words: Why not fix bugs instead of creating new ones? johannes