Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82068 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30624 invoked from network); 6 Feb 2015 20:42:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 20:42:31 -0000 Authentication-Results: pb1.pair.com header.from=stelian.mocanita@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stelian.mocanita@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.49 as permitted sender) X-PHP-List-Original-Sender: stelian.mocanita@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:35512] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/00-30512-63725D45 for ; Fri, 06 Feb 2015 15:42:30 -0500 Received: by labpn19 with SMTP id pn19so3562281lab.2 for ; Fri, 06 Feb 2015 12:42:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=/Rex390YdoRRiu2YpEPRLRASaQy6ihw3hW/DEE4cfOc=; b=JUHviFQua/rmyvGKpi79w0pBOHNIVdeBQMfSrmijkn/40EaGC+7Cb1qdERk5baMrvm RmpXpyJ+Pz4vc9vxF5OLhfL0SlJJVIMMtcFGVOvb1OP0HtlYsbLDfY+sYXGyLX+13ZHJ jeyX6173NnODu/+5IKGUVW68pZmmY20eNE6EIWpIkowXKNjKN2AaW+Ua1BGK/sjx0UQf tlyI4/GAnjvKHkoGqxhnSxDkA17KuCoEsphgm5OqPgMC2Ss21cxbjItIV4eE1mjiBscg uyajNixwU07Y+gHtt8xwPSO0okTWszoPfieT9Tw6BiwRXfIx9lM3bW7plWQdGxI8VhRy 8gJw== MIME-Version: 1.0 X-Received: by 10.112.40.201 with SMTP id z9mr4672908lbk.117.1423255346349; Fri, 06 Feb 2015 12:42:26 -0800 (PST) Sender: stelian.mocanita@gmail.com Received: by 10.112.73.10 with HTTP; Fri, 6 Feb 2015 12:42:26 -0800 (PST) In-Reply-To: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> Date: Fri, 6 Feb 2015 21:42:26 +0100 X-Google-Sender-Auth: d5lGIpuQWuhzXH9YwuwU-w978Aw Message-ID: To: Andi Gutmans Cc: Andrea Faulds , PHP Internals Content-Type: multipart/alternative; boundary=001a11347c5c580d4b050e7175b9 Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: stelianm@php.net (Stelian Mocanita) --001a11347c5c580d4b050e7175b9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sending people who want to have more structure in the language to Java is downright bad, not to mention that it sounds completely dictatorial. I would just put that in the next Zend newsletter to make it clear for your customers that there is a saner option. Stelian 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... > > 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. > > Andi > > > On Thu, Feb 5, 2015 at 3:47 PM, Andrea Faulds wrote: > > > 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 > some, > > 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 > 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. > > > > =E2=80=9CConsensus=E2=80=9D is exaggerated. There was no consensus and = to claim there was > > is to ignore the reality that the PHP community is divided over this > issue. > > 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 = reception > > was not uniformly positive, not even close, and that=E2=80=99s just on = internals. > > > > > 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. > > > > 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 = any hotspots in > > their code they may want to take a look at - again not necessarily an > error > > 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 = of > > =E2=80=9Cconsensus=E2=80=9D which does not even approach it. > > > > -- > > Andrea Faulds > > http://ajf.me/ > > > > > > > > > > > --001a11347c5c580d4b050e7175b9--