Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65988 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29550 invoked from network); 19 Feb 2013 19:07:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 19:07:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:47032] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/E5-17768-C8DC3215 for ; Tue, 19 Feb 2013 14:07:57 -0500 Received: by mail-la0-f53.google.com with SMTP id fr10so6749970lab.26 for ; Tue, 19 Feb 2013 11:07:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:to:subject:references:date:cc:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=hfjT68gAQNMp6MaM2QRXZvUtBrlgLvTsdMOaIlF3YLI=; b=wjKF0yaxlHlHgJtX3VzR4oSJ5zXAOHCqfnj9H9JEo/WxV9SQhzWE2V/Gl31rvQmHr6 kLPRkIWdZE8p/a+8VAXI6koLGTVgH+7S0K7CrItImiN4TEo39zpJFQSzBa3RdDge2+aa XTpLdQhewjfQMhM4YsfgGJN8qAnhBP6vL7qjtsI0TV6fTtVDHhYi11AA7gbMSjP3x137 6wH11POoVIQEpifcE5Lflw4d2e6gDSqkJg9HCSAiHIfJwU2WQ60Hdu7/qZvq5o+cY7ol Jyf0xFfUEUTtHTQPKwO1bokGp4W847JFVl0i+pYbtNpRtYog+jltSAG4qJSCzUnipwV1 NfGw== X-Received: by 10.152.106.5 with SMTP id gq5mr15354380lab.5.1361300873152; Tue, 19 Feb 2013 11:07:53 -0800 (PST) Received: from nikita2206-debian (37-144-174-250.broadband.corbina.ru. [37.144.174.250]) by mx.google.com with ESMTPS id fm8sm21122494lbb.17.2013.02.19.11.07.51 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 19 Feb 2013 11:07:52 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Christopher Jones" , "Rasmus Lerdorf" References: <5123BE51.7060500@oracle.com> Date: Tue, 19 Feb 2013 23:07:51 -0000 Cc: "internals@lists.php.net" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <5123BE51.7060500@oracle.com> 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 18:02:57 -0000, Christopher Jones wrote: > > What about including a few basic examples aka test cases in your patch? > If the feature is accepted, you'll need to include a LOT of testcases. > > Chris > Hi Chris, this code could be a basic case (just for the sake of understanding) https://gist.github.com/nikita2206/4988665 But I will add an actual tests if it's going to receive some support. On Tue, 19 Feb 2013 18:41:41 -0000, Rasmus Lerdorf wrote: > On 02/19/2013 02:39 PM, Nikita Nefedov wrote: > > About 20-30 times every single day. > > -Rasmus Hi Rasmus, 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.