Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82079 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65962 invoked from network); 7 Feb 2015 03:36:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2015 03:36:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:55985] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/81-55814-55885D45 for ; Fri, 06 Feb 2015 22:36:54 -0500 Received: from [IPv6:2001:a60:2531:3a01:a9b5:716b:f6f9:a362] ([2001:a60:2531:3a01:a9b5:716b:f6f9:a362]) (AUTH: PLAIN lars@schokokeks.org, TLS: TLSv1/SSLv3,256bits,ECDHE-RSA-AES256-SHA) by milch.schokokeks.org with ESMTPSA; Sat, 07 Feb 2015 04:36:49 +0100 id 000000000000002B.0000000054D58851.00000A37 Content-Type: multipart/signed; boundary="Apple-Mail=_E0BEC85A-405F-4832-9D93-C7457DB9FF95"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) X-Pgp-Agent: GPGMail 2.5b4 In-Reply-To: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> Date: Sat, 7 Feb 2015 04:36:45 +0100 Message-ID: <41EBB3A7-4AFC-4A73-B9AA-CD7129ACF9F0@strojny.net> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> To: Andrea Faulds , PHP Internals X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: lars@strojny.net (Lars Strojny) --Apple-Mail=_E0BEC85A-405F-4832-9D93-C7457DB9FF95 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Andrea, > On 05 Feb 2015, at 21:14, Andrea Faulds wrote: > [...] > Voting starts today (2015-02-05) and ends in two weeks=E2=80=99 time = (2015-02-19). In addition to the vote on the main RFC, there is also a = vote on the type aliases issue, and a vote to reserve the type names for = future RFCs=E2=80=99 sake if this RFC fails. >=20 > The RFC can be found here, and it contains a voting widget: = https://wiki.php.net/rfc/scalar_type_hints I realise how much effort you put into making scalar type hinting = possible in PHP and I applaud you for that. Being a proponent of strict = scalar type hinting I also understand the current RFC tries to find a = compromise between both camps. It is probably the best we can come up = with right now given we want to fullfill the following set of = requirements: - Strict scalar hinting - Weak scalar hinting - Let the mode be chosen by the caller, not the callee I nevertheless decided voting against it as I am afraid the current RFC = would do more long-term harm to the ecosystem than not having scalar = type hints. My main concern is that the declare statement is basically a = better behaviour changing ini setting and PHPs history is paved with = those. I very much hope for scalar type hinting, especially a strict = variant but this is not what we should merge. cu, Lars --Apple-Mail=_E0BEC85A-405F-4832-9D93-C7457DB9FF95 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIVAwUBVNWITiQPF+sCY6wHAQKbqg//XgVXgto53TfgRBydGFZ3fcaBEfx8rjmj LaQb8R+NFcqxmnLLCpZMZLU9iTgtAeSSOqzJ41MZbdvBE0Azt9eGcXhZF6ma//HA 3CeWsZGvoe8q8rLUV5kNkRyAqnd3hdq5QTEqenIlQzqYrg3we+jvLZPuWbB/AFqa JHHAyHGwI4LFMzewui3k8DwhJUu+O+jeJDUg8VLBW8xRhR2lqxd3xsSK+f0MAVlJ 3+vD3zlxMe7pKF/yUKCIYlrVDRB911kbp2cjnOSgEtIf7LIOc/mDas66W1crtcgM h+5KvgYtrwCfFCXU3LhvMmxj9ZMf3rnXwCwbrrHkHwy9cPDNH4QtfLPIEg9iGRp3 pok6SZ94Fjfj2i1IWwSdVN5DwPVJSyIU+Mak8CLqZ+EnXZQxWq7fRwY4XWqPBWvW OvN6dnyJtcXTyTOXnr9fScJa+PJ9WhKK5uGOVWKs2bTIAp6wW1GxwIPD7rwS4agN /HHNw9OT5Lqp51gRIEVphsZDvtwIyZGpi5hfpNlFcIQDVw8hnTScJOybJLU605gy o16x2Lrzl+ibm2n+dLAJZoLhwGTfXgFcbu+SMKJ6lODYJVy7rj7AyfucjDXqYxiX jUvL4KKW8bk36ACywL6iq8AMLyIGDXMT+Zl7lQOVEY8ncULvnAU3ivPhe+biUG0o lPUx/hxosMc= =9tsA -----END PGP SIGNATURE----- --Apple-Mail=_E0BEC85A-405F-4832-9D93-C7457DB9FF95--