Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80497 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68443 invoked from network); 14 Jan 2015 22:28:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2015 22:28:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:48958] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/50-00659-1ADE6B45 for ; Wed, 14 Jan 2015 17:28:51 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id B27C7B00087; Wed, 14 Jan 2015 17:28:46 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HGEdWcLWmWaR; Wed, 14 Jan 2015 17:28:46 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 4B000B00085; Wed, 14 Jan 2015 17:28:44 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <2ae0164cb9b9bf1c974d7a3c60af0466@mail.gmail.com> Date: Wed, 14 Jan 2015 22:28:42 +0000 Cc: RQuadling@gmail.com, Leigh , PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <4E2073DE-0951-498C-97BB-DDAC094F11FA@ajf.me> <9a033dd1f223f854e760924d118ab812@mail.gmail.com> <2ae0164cb9b9bf1c974d7a3c60af0466@mail.gmail.com> To: Zeev Suraski X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: ajf@ajf.me (Andrea Faulds) Hi Zeev, > On 14 Jan 2015, at 13:35, Zeev Suraski wrote: >=20 > I don=E2=80=99t think we=E2=80=99re ever going to get consensus. But = judging by the feedback to the v0.1 version, I tend to disagree that the = opposers would have blocked it. There were certainly opposers =E2=80=93 = but not that many of them as far as I could tell. I think it stood a = good chance to pass at a 2/3. Unlike strict typing =E2=80=93 we = didn=E2=80=99t even go to a vote on it, which I think is unfortunate = (and should be changed, before changing course completely as this v0.2 = suggests). > =20 > We=E2=80=99re definitely not going to have consensus on introducing = both options as per this RFC. I for one think it=E2=80=99s the worst = possible option. It=E2=80=99s certainly possible it would=E2=80=99ve succeeded on = internals. However, it is also worth considering the opinions of those = who do not frequent internals and don=E2=80=99t have the right to vote. =46rom what I can see, the larger PHP community is generally in favour = of strict typing, and among them, the previous RFC revision was received = quite poorly. Myself, I might have been somewhat happy with just weak = hints, but it would upset an awful lot of developers who would like some = measure of strict typing. Developers who would most likely not use the = new scalar type hints, because they weren=E2=80=99t strict. And if = nobody uses them, why add them? This revision hopes to possibly placate both weak and strict typing = advocates. Of course, it also will lose some support in that it allows a = choice. Plus, it gives the user choice, not the API designer, which I = expect will be somewhat controversial. But I am hopeful. Thanks. -- Andrea Faulds http://ajf.me/