Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30974 invoked from network); 19 Feb 2013 19:10:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 19:10:29 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.128.49 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.128.49 mail-qe0-f49.google.com Received: from [209.85.128.49] ([209.85.128.49:62878] helo=mail-qe0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/36-17768-42EC3215 for ; Tue, 19 Feb 2013 14:10:28 -0500 Received: by mail-qe0-f49.google.com with SMTP id 5so3202497qea.22 for ; Tue, 19 Feb 2013 11:10:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=fT66XuKkvSHKTJ+9OD3aeQbCL8+a3pcnI0LO5N7MzVA=; b=ZLl5oZX0jAJFP/ZPaPJ9B7DtrFM+SVH4sJ18UTagFL8EWsvWOYtCJYvo9BJKyT3aGS HLJz4lqeY9vQnE1iAYo7nPUb4jny92bGi76dNhifKtURIAYU5B7VeMMHu90XsmBSVdcU i4dW/FzucMWPJg62rNpV4JhlKZEeJgnIgMZrZgWsi51t3k6KdulgNWGwaeCtWksJlGNe 5yz+5xFzuWTdQyqx52k1lrmlwjau2C31+gCgfnIUJZA1D+BjqIAUWw+y9G6eGRWKqfCI m2XERk+buV1/kKo7ZvHRmt0WoTeHOjxfno0fmEimBiXZYCgl36p/a8WKYgOok1/M1D/M 8KpQ== X-Received: by 10.229.173.159 with SMTP id p31mr1682041qcz.76.1361301025377; Tue, 19 Feb 2013 11:10:25 -0800 (PST) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id x9sm27742974qen.1.2013.02.19.11.10.23 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Feb 2013 11:10:24 -0800 (PST) Message-ID: <5123CE1E.5020500@lerdorf.com> Date: Tue, 19 Feb 2013 11:10:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Nikita Nefedov CC: Christopher Jones , "internals@lists.php.net" References: <5123BE51.7060500@oracle.com> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmgvTFaFcTvNpbCZgGxe6FoCTkC5RqPkb4qdyM529uF3mBVkOVPrctxsWCqX++BkW0uEZUr Subject: Re: [PHP-DEV] Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: rasmus@lerdorf.com (Rasmus Lerdorf) On 02/19/2013 03:07 PM, Nikita Nefedov wrote: > Are you grepping for all the functions or you are grepping just for some > specific function? If so, you are likely already know what visibility > this function has, so couldn't you grep for `public %functionName%` > instead of `function %functionName%`? > At the end, you can always use `grep > '(function|public|private|protected) functionName' file`, and if it's > long to type, you can make sh script, or even alias. public is the default visibility so it is often left off, so no, I can't grep for that. -Rasmus