Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66013 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95848 invoked from network); 20 Feb 2013 00:52:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2013 00:52:00 -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:34228] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/00-29922-D2E14215 for ; Tue, 19 Feb 2013 19:51:58 -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 51E7965E36; Wed, 20 Feb 2013 01:51:54 +0100 (CET) To: Levi Morrison Cc: Rasmus Lerdorf , Zeev Suraski , Nikita Nefedov , "internals@lists.php.net" In-Reply-To: References: <-1452447624906595030@unknownmsgid> <51240F9D.8020409@lerdorf.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 20 Feb 2013 01:52:47 +0100 Message-ID: <1361321567.2355.97.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?=) On Tue, 2013-02-19 at 17:08 -0700, Levi Morrison wrote: > Let's stop pretending that the vast majority of PHP users actually > grep source code looking for `function foo`. That was never said, but there's a big number of people who has to deal with code produced by others and doing tasks where it is not always appropriate to startup and IDE and create a project and index it and "grep" is not always a simple grep but some more complex operation involving a search. And as you are happy with your idea you can certainly create shortcuts so you can type "puf" or such instead of "public function" and maybe even to hide the "function" word. > They don't. *They don't > even know how to use grep.* However, every PHP developer has to write > `function` and more importantly they have to read `function` over and > over again. The ones who don't know about 'grep' are happy about the extra clue. > Am I tired of everyone complaining about this particular issue and > pointing to the fact that some external tool won't work if you remove > the otherwise unnecessary keyword? Yes, I am. Take a step back and > look at your argument guys: you may have strong personal feelings > about it, but it's a pretty thin argument. The argument for removing (or rather: the argument for adding yet another alternate syntax) is even weaker. Code is more often read than written. Now let's focus on work. johannes (who will now ignore this thread - we're turning in circles)