Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77772 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63937 invoked from network); 3 Oct 2014 22:06:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2014 22:06:09 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.47 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.216.47 mail-qa0-f47.google.com Received: from [209.85.216.47] ([209.85.216.47:48654] helo=mail-qa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/65-39134-0DD1F245 for ; Fri, 03 Oct 2014 18:06:08 -0400 Received: by mail-qa0-f47.google.com with SMTP id cm18so1445611qab.20 for ; Fri, 03 Oct 2014 15:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dgzMB+Bcsfeszgzg69dYBWUZgw601pKEmnUu4F0XuTA=; b=amnIceC6jq/OzMcBHqIqeKoPUaqt1MtuWaXTbU/XS8PGDTbmgz9AV1qgxAG4hfWQzu yFsh3vet71ZricX61ZCwutNN9123H4NzSUWfvtgDcCQZ/VjwrI7WMsYpu12Unut+ARV4 POIIVeld4mF7zp8y579hAi7Nuuf0Y5xgJDEjDQ7O2N/PJpxNcG9Acil+aeGeafZweh9j /rCXrhgDSOthMWD3m+k8VJzvhJujU7udAwj/xhUqnJ1scqNBz4dPFvnnlYGI42CjgsOS fSg+dpl5T4Uy1DuIDRlsQb6KiyMt2llY2mf4yCvcfCqEJdWfSugwLZrwO6s4cHVlthpK HU3w== MIME-Version: 1.0 X-Received: by 10.229.140.70 with SMTP id h6mr11537257qcu.3.1412373966085; Fri, 03 Oct 2014 15:06:06 -0700 (PDT) Received: by 10.140.19.213 with HTTP; Fri, 3 Oct 2014 15:06:06 -0700 (PDT) Received: by 10.140.19.213 with HTTP; Fri, 3 Oct 2014 15:06:06 -0700 (PDT) In-Reply-To: References: <42.58.10205.32DCE245@pb1.pair.com> <9B6F1F10-7B1D-4FB0-A485-4F1C6202701C@googlemail.com> Date: Sat, 4 Oct 2014 01:06:06 +0300 Message-ID: To: Kalle Sommer Nielsen Cc: PHP internals , Thomas Gossmann , Ingwie Phoenix , Mike Willbanks , Levi Morrison Content-Type: multipart/alternative; boundary=001a1132ec3289e37e05048bf075 Subject: Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods? From: arvids.godjuks@gmail.com (Arvids Godjuks) --001a1132ec3289e37e05048bf075 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 04 =D0=BE=D0=BA=D1=82. 2014 =D0=B3. 1:03 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0= =BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Kalle Sommer Nielsen" =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > Hi > > 2014-10-03 22:00 GMT+02:00 Arvids Godjuks : > > Hello internals. > > > > I'm firmly against removing the "function" keyword. PHP is a dynamic > > language, that means that even using the latest most functional IDE's out > > there, finding the implementation is not always few clicks away (PhpStorm's > > "Find Usages") and you need to do a search in the project. And the only > > thing, that makes it fast and easy, is the "function" keyword, because you > > can do a search by "function nameISearchFor" and get a single hit. > > > > I'm not even mentioning the code readability... > > I highly doubt THAT many names properties or constants in paticular > with the same name as a method, and honestly, is it that bad to get a > few extra search results? I think that seems like a very thin argument > against this. > > For readablity, the only situration I can think of that can create > some fuzzy is something like this; > > abstract class A { > b(); > } > > Abstract class with a method and the visibility modifier omitted, > looks like a function call inside a block of code but that is pretty > much about it, but in a non example type of context, even that would > add more readability to that fuzzy example: > > abstract class Driver { > connect($host, $username, $password, $database); > close(); > } > > Thats for saying, I'm not against removing it, but I'm not in hugely > favor for doing so either, lets call that neutral. > > > > -- > regards, > > Kalle Sommer Nielsen > kalle@php.net I really have to ask, did you work with really big projects? Like really sizeable. --001a1132ec3289e37e05048bf075--