Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81975 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91178 invoked from network); 5 Feb 2015 23:22:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 23:22:31 -0000 Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.53 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 209.85.220.53 mail-pa0-f53.google.com Received: from [209.85.220.53] ([209.85.220.53:35820] helo=mail-pa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/B1-17766-63BF3D45 for ; Thu, 05 Feb 2015 18:22:31 -0500 Received: by mail-pa0-f53.google.com with SMTP id lf10so5501295pab.12 for ; Thu, 05 Feb 2015 15:22:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=gsrey9HXv5KgDwZy9GfxHNd4T7jAftSp7aNGTMAF7ZM=; b=aBsRXiB0BSmeWLOygNHk6VgrINODUUj3Wc9eJz3CbNx3swLjlzguN1YD3HCxqD3pUM 9sC21b9Z4UwCh+TE+Jvs9tgQjoP110NX86k8N+yJmkSuJS8ft6TghkYdoPtZp+Iuw4aQ WysRKekGjchKpLWYTVlZo96R5XUF7bVnZKIy6z/cJ35e+Rzgi5QrTxde2IKyMpR56A9l XnvonBYAEOeogGGqhTziYV0G7TtrHGbo/q7Ba1DZiybg6uGV3Dtp3LZfcRcOLWCzZLQw sjevNFeMX60CNaAnKX9yB6fu5xyH1CrkDPB35N71PLrZLunt5GdqMRfpU5TPjwcpe2wZ lFGA== X-Gm-Message-State: ALoCoQnhOOKvQCD8bEZwMOX/OXnlaO8vUdRdFY2G7aEpN/GX1hoRhgSocAfNd2ZCaIJQBhh699cwRfj0E99i+/6XQO30rq1BGXGkIG8JyyCQCiEmu0pSdkgxfnyu5lT7UzfNJiK7nDVQCxlqHQ+2svZURuGWvbVl9w== X-Received: by 10.70.127.209 with SMTP id ni17mr959167pdb.100.1423178548467; Thu, 05 Feb 2015 15:22:28 -0800 (PST) Received: from [192.168.16.67] (us-gw1.zend.com. [63.205.162.116]) by mx.google.com with ESMTPSA id h2sm6149385pat.20.2015.02.05.15.22.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Feb 2015 15:22:27 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> Date: Thu, 5 Feb 2015 15:22:26 -0800 Cc: PHP Internals X-Mao-Original-Outgoing-Id: 444871346.262131-af2aecdb2b990ad98cbd093783a4d017 Content-Transfer-Encoding: quoted-printable Message-ID: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> To: Andrea Faulds X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: andi@zend.com (Andi Gutmans) I have to say I=E2=80=99m pretty disappointed at the opening of the = vote.=20 We had a pretty good RFC (thank you) for weak type hinting which was = aligned with the spirit of PHP and everyone was able to rally around it. This has now been morphed into something very hard to swallow and IMO = having such a declare(=E2=80=A6) syntax will be ridiculed by the broader = app dev community until the end of time=E2=80=A6 But even that syntax = aside (it=E2=80=99s only syntax after all), I think we lost the ability = to reach consensus on something so important to everyone which we = haven=E2=80=99t been able to come to agreement on for over 10 years. = Finally it was there, in reach and you made a 180 degree turn. I think it=E2=80=99d be so much easier for us to implement weak type = hinting. Have everyone rally around it. Be happy and then learn and see = whether an additional mechanism is really necessary. We could even add = an E_STRICT_TYPES error_reporting flag to help folks =E2=80=9Cdebug=E2=80=9D= their code if they so wish to see if there are any hotspots in their = code they may want to take a look at - again not necessarily an error = but maybe a debugging tool. But net, net - why not just implement the thing everyone can agree on. = Have something really good in the spirit of the PHP Language for PHP 7 = and learn how people leverage that=E2=80=A6 The reality is that for the = majority of the Web community =E2=80=9C1=E2=80=9D coming in from HTTP = should be accepted as a 1. Period. I voted =E2=80=9Cno=E2=80=9D but I will vote =E2=80=9Cyes=E2=80=9D for = the competing RFC which is 80% of your RFC. Why are we not given that = option?????? Andi > On Feb 5, 2015, at 12:14 PM, Andrea Faulds wrote: >=20 > Good evening, >=20 > At long last, I=E2=80=99m going to put the RFC to a vote. It=E2=80=99s = been long enough - I don=E2=80=99t think there needs to be, or will be, = much further discussion. >=20 > I=E2=80=99d like to make sure that everyone voting understands the RFC = fully. Please read the RFC in full: the details are important. And if = anyone has any questions or uncertainties, please ask them before = voting. I am very happy to answer them. >=20 > I would urge everyone who wants type hints to vote for this RFC. It is = not a perfect solution, but there can be no perfect solution to this = issue. However, I think it is better than most of the alternatives = suggested thus far - see the rationale section, and previous = discussions. Crucially, this RFC would keep PHP a weakly-typed language, = and not force either strict typing, nor weak typing, on anyone who does = not want it. It would allow the addition of type hints to existing = codebases. It would not create a situation where userland functions are = strict yet internal functions are not, because the strict mode affects = both. I=E2=80=99ve tested the implementation myself on my own code, and = it worked well, providing benefits other proposals would not have given = (see my previous post about my experiences). >=20 > 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 >=20 > Thank you for your time. >=20 > -- > Andrea Faulds > http://ajf.me/ >=20 >=20 >=20 >=20 >=20 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20