Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81981 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2469 invoked from network); 5 Feb 2015 23:50:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 23:50:51 -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.216.179 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 209.85.216.179 mail-qc0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:49374] helo=mail-qc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/24-17766-BD104D45 for ; Thu, 05 Feb 2015 18:50:51 -0500 Received: by mail-qc0-f179.google.com with SMTP id w7so9206947qcr.10 for ; Thu, 05 Feb 2015 15:50:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=3jlPpQbNvU2A3+z/fSK50KusZWeyMjCA/UXn3rHKq0E=; b=GOOKv/SHKOQb3KbMccbt3Q1aDsGRl4q6v9dWu9SZWuzxQJizBgfdXdYKtO+Nq6VTYT YUkTHGdZJ50xl648UaPxsvuucLyOybWaLVnvBfwItl6ZgXT8V3lCJSunCjnW4OacwnBs 1qvzQrIEHMDAw57IuQALN9DtipsxAlRKMa9UGdZZwsnPASJ4b8Y4Qo8AHKccz8AxkRS4 iuOUjuc75oIkZrvomQUm+W725wo5p6nPrZ9tZN8h9WetMQtrta8bwyqAj8XkuUDctDQk aDa0HoA9zlNZXQ52dN7iKuSAbeTcG1ROAG0QXGfbmFIfhQocbht8AdRkPqg+ebqAPIsK nZng== X-Gm-Message-State: ALoCoQldWMZaStfSUXeU/Oe+NSCl8jsjyytCuaqxHHbE3X2wAshu5XQoen19B7F+zA8mnBvoqvq85I+LqvRNBTQknw/g9vsirNwH9oS9VJoxUVk5+MK7ZcP8It2neD1WMVW2Zssz2Jwjj9J6T6wiZW5c9rBO3gqP0w== MIME-Version: 1.0 X-Received: by 10.140.42.226 with SMTP id c89mr1636499qga.83.1423180248259; Thu, 05 Feb 2015 15:50:48 -0800 (PST) Received: by 10.140.83.211 with HTTP; Thu, 5 Feb 2015 15:50:48 -0800 (PST) In-Reply-To: <20150205234432.933F5261BE9@dd15934.kasserver.com> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <20150205234432.933F5261BE9@dd15934.kasserver.com> Date: Thu, 5 Feb 2015 15:50:48 -0800 Message-ID: To: Thomas Bley Cc: Andrea Faulds , internals@lists.php.net Content-Type: multipart/alternative; boundary=001a113abbdc2629ba050e5ff9df Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: andi@zend.com (Andi Gutmans) --001a113abbdc2629ba050e5ff9df Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am not sure. I think we need to explicitly vote on a weak type hinting option. Andrea, I think this should be an option in any vote. Right now it feels like the only option to people is the very challenging, non-consensus driving RFC or nothing. I think we have plenty of key folks who would support weak type hinting and frankly, I think that would be a huge win for everyone! If I need to put forward a separate weak type hinting RFC which would heavily plagiarize Andrea's good work then please let me know. Andi On Thu, Feb 5, 2015 at 3:44 PM, Thomas Bley wrote: > I think the consensus is not so far away. > As far as I understand the rules, it is possible to vote yes and put up a > new RFC to remove strict-declare after the voting ends? > > Regards > Thomas > > Andi Gutmans wrote on 06.02.2015 00:22: > > > I have to say I=E2=80=99m pretty disappointed at the opening of the vot= e. > > 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 d= ev > 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 hi= nting. > 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 i= f they so wish to > > see if there are any hotspots in their code they may want to take a loo= k > 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 t= he 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: > >> > >> Good evening, > >> > >> 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 disc= ussion. > >> > >> 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 an= y > >> questions or uncertainties, please ask them before voting. I am very > happy to > >> answer them. > >> > >> 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 stric= t > 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). > >> > >> 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. > >> > >> The RFC can be found here, and it contains a voting widget: > >> https://wiki.php.net/rfc/scalar_type_hints > >> > >> Thank you for your time. > >> > >> -- > >> Andrea Faulds > >> http://ajf.me/ > >> > >> > >> > >> > >> > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > --001a113abbdc2629ba050e5ff9df--