Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77784 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90110 invoked from network); 4 Oct 2014 22:10:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2014 22:10:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.46 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.218.46 mail-oi0-f46.google.com Received: from [209.85.218.46] ([209.85.218.46:60013] helo=mail-oi0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/FA-11734-76070345 for ; Sat, 04 Oct 2014 18:10:48 -0400 Received: by mail-oi0-f46.google.com with SMTP id h136so2180080oig.19 for ; Sat, 04 Oct 2014 15:10:45 -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=mGTOIbsiF3LWxEAhoiJVKDlGQOy6KiM5aCuzfj/+29U=; b=NwxOPbwIS+qa2Y2MONdXNTpwB4dgUjktaSVAc/n3taueyHEcrbhspRHepeFNdZiiQt YnLR8ApdnHlDk0W3figYBUtATtjKsCqqZXQmwAAg7e3Nyi/qI5Hq8YwSa6eRFku3lIPa vDWGwLTWTLR4sXTf62RevbxhpCGiVX8K5FjAakGnkAeA96PM7T7z39YqfETrJmYljDXh jY8FwAJ18A/ORCqWZwjalDK5RKmJQS32F9dl9PxTFoF/yff2kc9DfNgAQmw6dniX7EUz +jkVByMGHbR1GheBMykwJWJqe4e+oACn3EEbmsPl163oil77OG1r+HR9dbWnYTNkJsCQ N6tA== MIME-Version: 1.0 X-Received: by 10.182.40.234 with SMTP id a10mr16706446obl.8.1412460645194; Sat, 04 Oct 2014 15:10:45 -0700 (PDT) Received: by 10.202.227.206 with HTTP; Sat, 4 Oct 2014 15:10:45 -0700 (PDT) Received: by 10.202.227.206 with HTTP; Sat, 4 Oct 2014 15:10:45 -0700 (PDT) In-Reply-To: <93.39.11734.D6B30345@pb1.pair.com> References: <42.58.10205.32DCE245@pb1.pair.com> <1412444677.4712.3.camel@kuechenschabe> <93.39.11734.D6B30345@pb1.pair.com> Date: Sat, 4 Oct 2014 15:10:45 -0700 Message-ID: To: Thomas Gossmann Cc: PHP internals list Content-Type: multipart/alternative; boundary=001a11c3319e0421ef0504a01fbf Subject: Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods? From: kris.craig@gmail.com (Kris Craig) --001a11c3319e0421ef0504a01fbf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Oct 4, 2014 11:24 AM, "Thomas Gossmann" wrote: > > Thanks Johannes, I slipped over it but would have never found the discussion to it. > > I run over it and the summary is: Many people like it and those that don't have brought arguments, that are present here again. The discussion is almost 4 years old by now, and people are complaining over things getting implemented in php back in time, which are now implemented and turned out to be ok - I expect the same to happen with this idea. > Main contra argument is, people are not able to grep for 'function *' anymore, which I guess is a minority of people and they can write themselves a shell-script which makes it possible to search for functions again, so not a big deal. However, the more important statement behind this is, who is the more important crowd of people that are targeted with changes like these? Primary or secondary consumers? > ... but see my other mail, which conatains answers. > > Though, I have one question left regarding the old rfc? Why it has been gone inactive and basically slept since then? > > Thanks > Thomas Gossmann > > Am 04.10.14 um 19:44 schrieb Johannes Schl=C3=BCter: > >> On Fri, 2014-10-03 at 18:21 +0200, Thomas Gossmann wrote: >>> >>> I guess this was a discussion earlier, though I wasn't able to find >>> anything about it. Would love to hear, what pdt-internals (re-)think >>> about that topic. >> >> >> Go to wiki.php.net/rfc look at the titles containing "function" and you >> will see "Make T_FUNCTION in method declarations optional" which was >> added by me. https://wiki.php.net/rfc/optional-t-function >> >> Since proposing I was convinced this wasn't good. Please bring new >> arguments. Discussion was in this thread >> http://news.php.net/php.internals/50628 (another viewer might be better >> to find the ~64 followups) >> >> johannes >> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Summary thus far: Pro: Eliminating the function keyword is good because coding =3D=3D=3D sculpting; "perfection" occurs when there's nothing left to remove. Con: It's completely unnecessary and would make it prohibitively difficult to consistently locate subroutine declarations in a codebase. I believe the cons vastly outweigh the pros in this case. The function keyword is a very good example of PHP's KISS (Keep It Simple, Stupid) philosophy. But if you're serious about this, draft an RFC and we'll vote on it. If 2/3 support your idea, it'll pass. --Kris --001a11c3319e0421ef0504a01fbf--