Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49084 invoked from network); 19 Feb 2013 21:03:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 21:03:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=peter.e.lind@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=peter.e.lind@gmail.com; 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: peter.e.lind@gmail.com X-Host-Fingerprint: 209.85.217.180 mail-lb0-f180.google.com Received: from [209.85.217.180] ([209.85.217.180:62015] helo=mail-lb0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/59-17768-0A8E3215 for ; Tue, 19 Feb 2013 16:03:29 -0500 Received: by mail-lb0-f180.google.com with SMTP id q12so5378108lbc.39 for ; Tue, 19 Feb 2013 13:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=sfp5fN0Ce2G5xVuBYJAhS3emmNfRrbr97J7t40EVN8s=; b=ATC9PAAYHabXVADCAGPvLQ+/vTJMqWuxsW8QLEsWsTK6cGS90qdx+kA0g8LOjDgSGq GrHKRIWbPvajEUTn6NWGC6L37mKeqNN+Ye+3P6WxqDK7rP1Isir+mQF0WVFnd83Ot9Xk oaIT6RAwar2ZQXFEwFmTmYNf/dt+d6lL9wcQvUUuaAHI7h5OrlVyC9e2FhmlSCjIWtSF 1jFnFFOuHgzCPVqHw/rysfzMoCacWjt7lQyIVSWvWpOtVsOu7HydMq5ZZgdADkgTdkC9 hOIXCWoRLAN+44WPWlNyPUoDgQzXGgg7xb9e5sloPSan5ZfMZqLWpn9tNXd5XZPzhObt QdBw== X-Received: by 10.152.132.170 with SMTP id ov10mr15396903lab.21.1361307804384; Tue, 19 Feb 2013 13:03:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.110.134 with HTTP; Tue, 19 Feb 2013 13:03:04 -0800 (PST) In-Reply-To: References: <5123BE51.7060500@oracle.com> <5123CE1E.5020500@lerdorf.com> Date: Tue, 19 Feb 2013 22:03:04 +0100 Message-ID: To: Nikita Nefedov Cc: Rasmus Lerdorf , Christopher Jones , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: peter.e.lind@gmail.com (Peter Lind) On 20 February 2013 00:12, Nikita Nefedov wrote: > On Tue, 19 Feb 2013 19:10:22 -0000, Rasmus Lerdorf > wrote: > >> 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 > > > As Sara noted, we shouldn't let users define methods without modifiers at > all, so at least public/private/protected will have to be there. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Just a quick check: you're absolutely certain this issue isn't much better/easier handled with IDE macros/plugins? Something along the lines of zen coding? If you're really that obsessed with typing 9 characters less, you must have considered keyboard shortcuts that let you type the docblock, visibility, etc. in just 3-5 keystrokes. Just a thought from userland Peter -- WWW: plphp.dk / plind.dk CV: careers.stackoverflow.com/peterlind LinkedIn: plind Twitter: kafe15