Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93819 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99551 invoked from network); 5 Jun 2016 14:13:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2016 14:13:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.82 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.82 mx101.easyname.com Received: from [77.244.243.82] ([77.244.243.82:60504] helo=mx205.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/D7-55579-78334575 for ; Sun, 05 Jun 2016 10:13:27 -0400 Received: from cable-81-173-133-15.netcologne.de ([81.173.133.15] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1b9Yns-0002Yt-8t; Sun, 05 Jun 2016 14:13:24 +0000 Reply-To: internals@lists.php.net References: <94009625-535b-d937-21b6-b454f942a82d@gmail.com> To: Zeev Suraski , Rasmus Schultz Cc: PHP internals Message-ID: <201cc2a1-045a-b5fb-0bbd-4396146152eb@fleshgrinder.com> Date: Sun, 5 Jun 2016 16:13:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6pgbOhpw4X4dluMeAgH9Lo8SQr6ddVrdK" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC DISCUSSION] typeof From: php@fleshgrinder.com (Fleshgrinder) --6pgbOhpw4X4dluMeAgH9Lo8SQr6ddVrdK Content-Type: multipart/mixed; boundary="jwT2V5Bf2IgluMGxsGQRu9RkHEHDKLmKh" From: Fleshgrinder Reply-To: internals@lists.php.net To: Zeev Suraski , Rasmus Schultz Cc: PHP internals Message-ID: <201cc2a1-045a-b5fb-0bbd-4396146152eb@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC DISCUSSION] typeof References: <94009625-535b-d937-21b6-b454f942a82d@gmail.com> In-Reply-To: --jwT2V5Bf2IgluMGxsGQRu9RkHEHDKLmKh Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 6/5/2016 3:21 PM, Zeev Suraski wrote: > We're weighing a certain level of inconsistency that exists with > gettype(), with a different kind of inconsistency - having typeof() > and gettype() both be members of the language, and behave subtly > inconsistently with each other. So this is not consistency vs. > non-consistency, we're choosing between two non-ideal options. >=20 > IMHO, we're better off sticking with the devil everyone knows; The > inconsistency is there but it's not a very strong one with few > practical issues. IMHO, we're better off having this compared to > having two similar-but-different options. People for whom gettype() > is inadequate can obtain typeof() (or whatever it will be called) > using Composer. For people for whom this is a non-issue (vast > majority I would believe), don't have to be confused by two > similar-but-different options. >=20 You are completely ignoring the fact that the deprecation and removal of gettype() is actually part of my proposal. Anyone who continues to use gettype() should be informed that this is not the idiomatic way of performing this action and to use the new function instead. It might be a /slight inconsistency/ but it is at the same time a very shameful and sad one. Our language is not able to tell us the type of a variable! On 6/5/2016 3:21 PM, Zeev Suraski wrote: > As a side note, the fact we happen to have an implementation for this > should play no role in whether we accept a proposal like this or not; > This holds true for most RFCs - unless the implementation manages to > achieve some remarkably complex feat, and even then - it should stand > at its own merit. >=20 That is true, yes. --=20 Richard "Fleshgrinder" Fussenegger --jwT2V5Bf2IgluMGxsGQRu9RkHEHDKLmKh-- --6pgbOhpw4X4dluMeAgH9Lo8SQr6ddVrdK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXVDOBAAoJEOKkKcqFPVVrfeUP/inkAZiceEyUdotQ+MoDuMOH +++IxZ8qMFSZ1chLfNCwxzZdk4uqw8ZMba3ESqyK/pbfGOOTvmbqzw2TG6aED8X2 k6hNxsEQjoavGYR7Pa9kmlQIF2XQBVh1MDvlWaSJFeIcf3y/TVADWzA037R9hAy7 Dm78xu3/7G+aQ4cN3/Tx2pjZ3daocUccyIwTq7ZAqPuWNJukXqbztooIeWGb2wZC OJDONXEIDU69jpd0+xIClhWbqPNUNwEkYE9Fc1DSSD9HZpr784IvelK70HCMPy0T ApgyCru47Zqd9oRChhVpljL30Gf89mVNYsoNE39POJvKFig92lr9KC4dTRo670ZH TyN3KqWL9xMPfpDwvKpN3no8Z+6/xbBhunqpzPeD2GII2rwAmRm4tYp2+jd2k6r7 ExBJDcag5AjaByBQcZikVVtTBmuWNyCL9WAQ0YpdJNQ4ucuOYfe+tn/zNFw51IET 4DNkuHHGc+AuQmuC6z4wq/GJ9N8VnF5kPSQf+kismYVO4dVtzvsiYu0lcjZ2W2E8 OVzV24kUdt8yIVPAdof6Kzk7Y6G70SROXsjL1n5rQvSKZ1k44/GpxjcLdLvfiIvs trbRqTCDWPZq16hTK+quYuU2oKeKa/MSv96wTc8YNguaWml2ApDq7/+1tPfkSFgp 74hDojctrH1vEK7svyzy =shls -----END PGP SIGNATURE----- --6pgbOhpw4X4dluMeAgH9Lo8SQr6ddVrdK--