Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35377 invoked from network); 6 Feb 2015 21:31:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 21:31:58 -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.51 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 209.85.220.51 mail-pa0-f51.google.com Received: from [209.85.220.51] ([209.85.220.51:40696] helo=mail-pa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/C0-30512-BC235D45 for ; Fri, 06 Feb 2015 16:31:56 -0500 Received: by mail-pa0-f51.google.com with SMTP id hz1so15109228pad.10 for ; Fri, 06 Feb 2015 13:31:52 -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=kt/r9wYDCYTD1eXb6IUNQ7/8Q4xIVzGYjsTcHlkrbcU=; b=ix3R/36/hlsyen6Lv6u7K5WJnmzChoJMNjSTOQBxVsPnBeEBGMlduJIMElBOmdXd6h MBFcPU7mVgK6ecGBdeG2nZfbSJHLg5AeOiLf9IKj1IgRlBSrhL0g52zod1OH1KmXXmGm a79ZfWAgssSVQQlfk2goZkJ4KwckV2eXEP0mvYKOWz7VitbYzWNpeddE5mkz6PuBjcDH xZXYSQfhnAbMKzM3N9C2F+doiPqforMw1i4zfMBfflYM1SW5ecFdaFAQPtGuyDKBvLaD xzZUYZBbMBdU9gYOpdjfiejLPL3gxoF4CDM9H0QpNlnMsd25iW6d6uQIOw8bs6Okuxj8 6gUQ== X-Gm-Message-State: ALoCoQkcpyBJ9ybtcrLJmyTUqpEQf1VR73PTO7Z83EUxN8cFMG/dDsuyJ3SRJhdg7Pe7LbZ35xNdEhaODOBd6k1J7TVDXPAnNbxuQ49tnEiSsThezfzpv1/UlzB+I4r3KomYyrneumbgFA+BmAVhd/ktcs5qqarj5Q== X-Received: by 10.66.124.227 with SMTP id ml3mr9068125pab.28.1423258311971; Fri, 06 Feb 2015 13:31:51 -0800 (PST) Received: from [10.116.32.8] ([166.170.37.12]) by mx.google.com with ESMTPSA id h14sm272901pdm.60.2015.02.06.13.31.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Feb 2015 13:31:51 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-32DCE87E-CAD9-427C-BBBC-FA247FEA2B01 Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12B466) In-Reply-To: Date: Fri, 6 Feb 2015 13:31:50 -0800 Cc: Andrea Faulds , PHP Internals Content-Transfer-Encoding: 7bit Message-ID: <6CE39098-883F-4494-9553-7BE83B2237E2@zend.com> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> To: Stelian Mocanita Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: andi@zend.com (Andi Gutmans) --Apple-Mail-32DCE87E-CAD9-427C-BBBC-FA247FEA2B01 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Feb 6, 2015, at 12:42 PM, Stelian Mocanita wrote: >=20 > Sending people who want to have more structure in the language to Java > is downright bad, not to mention that it psounds completely dictatorial. I= =20 > would just put that in the next Zend newsletter to make it clear for your=20= > customers that there is a saner option. >=20 Oh come on. I was kidding. I will remember for next time this list has no se= nse of humor.=20 And just for the record this is not a zend thing. Four zenders voted based o= n their own beliefs - three votes were no and one was yes. So diversity here= too plus a small minority of total voters who can't really move the needle m= uch.=20 Let's keep the conversation pragmatic. I will try and refrain from any humor= .=20 Andi > Stelian >=20 >> On Fri, Feb 6, 2015 at 12:57 AM, Andi Gutmans wrote: >> The folks who really want all this great strict typing should head over t= o >> Oracle.com and download free open-source Java? I hear it's got a lot of >> strict typing features in it. Only downside is that it'll take them 10x >> longer to complete their projects. OK sorry. Had to say that :) I realize= >> it's not the same... >>=20 >> Andrea, while I don't agree with what you say I accept it. *But* exactly >> for the reasons you state (the big divide) we should also have a weak typ= e >> hinting option to vote for in parallel. If you feel morally unable to do >> that then I can copy your work and just have another RFC running in >> parallel but I think that would do a disservice to the good work you've >> done. >>=20 >> Andi >>=20 >>=20 >> On Thu, Feb 5, 2015 at 3:47 PM, Andrea Faulds wrote: >>=20 >> > Hi Andi, >> > >> > > On 5 Feb 2015, at 23:22, Andi Gutmans wrote: >> > > >> > > I have to say I=E2=80=99m pretty disappointed at the opening of the v= ote. >> > > 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 is far from true. Some people on internals were happy, but only so= me, >> > and everywhere outside internals I looked, the reception was far more >> > negative. >> > >> > > 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 broade= r app dev >> > community until the end of time=E2=80=A6 >> > >> > Nobody mocks Perl or JS for use strict. >> > >> > > But even that syntax aside (it=E2=80=99s only syntax after all), I th= ink we lost >> > the ability to reach consensus on something so important to everyone wh= ich >> > 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. >> > >> > =E2=80=9CConsensus=E2=80=9D is exaggerated. There was no consensus and t= o claim there was >> > is to ignore the reality that the PHP community is divided over this is= sue. >> > I=E2=80=99d love to say that everyone loves weak type hints and if that= version had >> > passed we=E2=80=99d all be dancing around happy holding hands, but the r= eception >> > was not uniformly positive, not even close, and that=E2=80=99s just on i= nternals. >> > >> > > I think it=E2=80=99d be so much easier for us to implement weak type h= inting. >> > Have everyone rally around it. Be happy and then learn and see whether a= n >> > additional mechanism is really necessary. >> > >> > Who=E2=80=99d be happy? I realise you and Zeev are big fans of weak typ= es, as are >> > many others, but there are also a lot of PHP developers who vehemently >> > disagree with you. >> > >> > > We could even add an E_STRICT_TYPES error_reporting flag to help folk= s >> > =E2=80=9Cdebug=E2=80=9D their code if they so wish to see if there are a= ny hotspots in >> > their code they may want to take a look at - again not necessarily an e= rror >> > but maybe a debugging tool. >> > >> > Global error handlers affect all code the interpreter runs, which is wh= y >> > we=E2=80=99ve looked down on them in recent times. >> > >> > > But net, net - why not just implement the thing everyone can agree on= . >> > >> > Everyone doesn=E2=80=99t agree on it. >> > >> > If everyone did agree on it, v0.1 of the RFC would have been the one th= at >> > went to vote. >> > >> > > 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 acc= epted as a 1. Period. >> > >> > It=E2=80=99s very well and good you claiming that the =E2=80=9Cmajority= =E2=80=9D agree, but this >> > does not match my experiences. The PHP community is not a single, >> > homogenous entity. It is very difficult to judge. >> > >> > > I voted =E2=80=9Cno=E2=80=9D but I will vote =E2=80=9Cyes=E2=80=9D fo= r the competing RFC which is 80% of >> > your RFC. Why are we not given that option?????? >> > >> > Because I cannot in good conscience push through something in the name o= f >> > =E2=80=9Cconsensus=E2=80=9D which does not even approach it. >> > >> > -- >> > Andrea Faulds >> > http://ajf.me/ >> > >> > >> > >> > >> > >=20 --Apple-Mail-32DCE87E-CAD9-427C-BBBC-FA247FEA2B01--