Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65983 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20547 invoked from network); 19 Feb 2013 18:39:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 18:39:13 -0000 Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.180 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.217.180 mail-lb0-f180.google.com Received: from [209.85.217.180] ([209.85.217.180:34710] helo=mail-lb0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/04-17768-0D6C3215 for ; Tue, 19 Feb 2013 13:39:13 -0500 Received: by mail-lb0-f180.google.com with SMTP id q12so5240674lbc.25 for ; Tue, 19 Feb 2013 10:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=S48SdpQkabIIDAFCYJKLAna0ovI7qIVwybQ1HDS0x20=; b=rQlqb8HrNvNvtEZeUp5BOh5Dn8HfXG17bhzx5xWKldC8+J32TUHLybrNlnHdBAKXzC Q4T00obVvykyLpdjsoAFEWR4lf7HtmiGMuQe2gjhiIltTkP3GLdqeEHNZbqKTRK+AN7E sCisfHqJE2dbRdRR+7C5tz431L0M+kZjRW4lrwLe1w65SivA+2MjW4/Q9OU9y6itiq15 hwtFYELUXCT1V0YV7VTvGQdKKi5y97yCMpKJ2vkxlcixBGjdNalEsxurpg+l9czCGA48 Qz/gI7z3YI4rhmvxCog29lXEFFV25JhGOcffg8pcJTcs8AHO1R3KDVbwUQFYn8V9BrID 3V7w== X-Received: by 10.152.128.98 with SMTP id nn2mr15181782lab.17.1361299149048; Tue, 19 Feb 2013 10:39:09 -0800 (PST) Received: from nikita2206-debian (37-144-174-250.broadband.corbina.ru. [37.144.174.250]) by mx.google.com with ESMTPS id j2sm3033286lbd.16.2013.02.19.10.39.07 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 19 Feb 2013 10:39:08 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: =?utf-8?Q?Johannes_Schl=C3=BCter?= Cc: "internals@lists.php.net" References: <1361296420.2355.71.camel@guybrush> Date: Tue, 19 Feb 2013 22:39:07 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <1361296420.2355.71.camel@guybrush> User-Agent: Opera Mail/12.14 (Linux) Subject: Re: [PHP-DEV] Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: inefedor@gmail.com ("Nikita Nefedov") On Tue, 19 Feb 2013 17:53:40 -0000, Johannes Schl=C3=BCter = wrote: > I agreed to the conclusion that the "function" keyword provided a nice= > way to grep for functions when handling foreign code and leaving it ou= t > 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 f= ix > bugs instead of creating new ones? > > johannes > > Hmm, I agree about grepping, but how often do you do it? Actually, last = = time I grepped php files was half a year ago I think, when I had just ss= h = connection and didn't want to mount sshfs. But usually there's IDEs that= = can statically analyze your code and let you search against huge codebas= es = in seconds, I don't want to sound mean, but hey, does anybody greps php = = code? What about reasoning - of course there's no reasons besides less typing.= = At the moment, usually when I want to define method, I usually already = know will be in its body so I'm trying to type as fast as I can, and I = often make some mistake in `public` keyword or `function`, actually it = happens all the time :) So for me it would be pretty good feature if I = could write one less word. I agree with Sara about requirement for explicit declaration of visibili= ty = attr.