Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88602 invoked from network); 4 Oct 2014 01:29:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2014 01:29:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=eli@eliw.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=eli@eliw.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain eliw.com designates 69.195.198.246 as permitted sender) X-PHP-List-Original-Sender: eli@eliw.com X-Host-Fingerprint: 69.195.198.246 mx-mia-1.servergrove.com Received: from [69.195.198.246] ([69.195.198.246:34824] helo=mx-mia-1.servergrove.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/A2-08837-86D4F245 for ; Fri, 03 Oct 2014 21:29:12 -0400 Received: from [69.195.222.125] (helo=smtp2.servergrove.com) by mx-mia-1.servergrove.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1XaE9l-00079c-J8 for internals@lists.php.net; Sat, 04 Oct 2014 01:29:09 +0000 Received: from [69.136.226.104] (port=55965 helo=crossbow.local) by smtp2.servergrove.com with esmtpsa (UNKNOWN:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1XaE9l-0008O6-F8; Sat, 04 Oct 2014 01:29:09 +0000 Message-ID: <542F4D62.8070504@eliw.com> Date: Fri, 03 Oct 2014 21:29:06 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: internals@lists.php.net References: <42.58.10205.32DCE245@pb1.pair.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oSFmL33fS07eXIv2IaAFBnP9LjxQTWTT8" Subject: Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods? From: eli@eliw.com (Eli) --oSFmL33fS07eXIv2IaAFBnP9LjxQTWTT8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/3/14 4:57 PM, Andrea Faulds wrote: > Easy to implement, too. What are the list=E2=80=99s thoughts? I don=E2=80= =99t think it really hampers readability much. > I disagree. This is a case where verbosity is a good thing. Removing the word 'function' is akin (pardon the analogy) to arguing the $x is just as good of a variable name as $database. The latter is descriptive and explains exactly what is going on. While the shortened version, only saves a few keystrokes, which an IDE solves for you anyway. And makes it much more clear (when grepping, for tooling, when scanning) exactly what/where/how the functions are declared= =2E Eli --=20 | Eli White | http://eliw.com/ | Twitter: EliW | --oSFmL33fS07eXIv2IaAFBnP9LjxQTWTT8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (Darwin) iEYEARECAAYFAlQvTWIACgkQUTBVzmoxCKL7eACeNaRO4IDZYpzlGo16Y6Va7W4h 17kAn16mlNIbLhp+TygwejWdl6ekbrOX =M+Ei -----END PGP SIGNATURE----- --oSFmL33fS07eXIv2IaAFBnP9LjxQTWTT8--