Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81990 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18760 invoked from network); 6 Feb 2015 00:24:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 00:24:08 -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.192.51 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 209.85.192.51 mail-qg0-f51.google.com Received: from [209.85.192.51] ([209.85.192.51:34094] helo=mail-qg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/D7-17766-6A904D45 for ; Thu, 05 Feb 2015 19:24:07 -0500 Received: by mail-qg0-f51.google.com with SMTP id z60so4959300qgd.10 for ; Thu, 05 Feb 2015 16:24:04 -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=kEJKvXlGcjge477Nk2Prc3eMuChPqaXBc/x9LcT0aW8=; b=bV02JfREn8k0Wna9nuzFV+NtPd4k+Bd0Zil1UvAsSXG2wIMftk19k4Yufno0RPCNAn H+BNgvRBbRLC2u4FcggrJUkyazRd1LKCV10fy01s5wrkG9hxjPWY7K4tu+duIQQ+7gtw fjccH2dj1pckcmNVUsY4Gp2sSfpm1fsqgGXeKZ2nkhAAw3Y6RvBaIrbEEHdPRL6+RaOQ YYgxZhFNoYfVdil5Nfoy6DRo/oEzjmq/Dli6Wid8AsNlytkcnL5BeQTn6xn4oAkwevX1 +8REPmafeuduV+mPb443DkqknVONSFkiyInwbrY9OB1p9PySKnosbejVz3b/WIR1d+Gp 0OpQ== X-Gm-Message-State: ALoCoQmcqUVblfqjFIaNL6p1ur7Lgh7MNdBF554usuwfD9F2MZlE9IyEEZnJv1QIuB4AS7rmRSD4G5RrOL3HS0+4HRoQwGtjH4HUKvzXy072H2U6fu8/zLCXO1BhMD/VIIBnvKvXshxOfB0zGMqB+6+Zv00C6Bi/Cg== MIME-Version: 1.0 X-Received: by 10.229.37.136 with SMTP id x8mr2077048qcd.30.1423182244041; Thu, 05 Feb 2015 16:24:04 -0800 (PST) Received: by 10.140.83.211 with HTTP; Thu, 5 Feb 2015 16:24:03 -0800 (PST) In-Reply-To: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> Date: Thu, 5 Feb 2015 16:24:03 -0800 Message-ID: To: Andrea Faulds Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1133b5721b73a5050e607054 Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: andi@zend.com (Andi Gutmans) --001a1133b5721b73a5050e607054 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Feb 5, 2015 at 4:05 PM, Andrea Faulds wrote: > Hi Andi, > > > On 5 Feb 2015, at 23:57, Andi Gutmans wrote: > > > > The folks who really want all this great strict typing should head over > to Oracle.com and download free open-source Java? I hear it's got a lot o= f > 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=E2=80=A6 > > I don=E2=80=99t think it=E2=80=99s terribly funny to tell a large portion= of the PHP > community to go away. > Oh come on... You're taking me a bit too literally. Your proposal isn't Java-like strict typing... I even said that. > > Andrea, while I don't agree with what you say I accept it. *But* exactl= y > 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. > > No, I don=E2=80=99t think that=E2=80=99s fair. I=E2=80=99d be against hol= ding a vote on strict > types only for the same reason: the community is divided. Letting one sid= e > =E2=80=9Cwin" is simply unfair on everyone else. > I don't understand that statement. You mean it's not OK for any side to win unless you win? Or are you saying that you tried to strike a balance between the two parties which you hoped everyone could rally around? What if they can't? It's all or nothing? Btw, not trying to be facetious but really trying to understand where you're coming from. > To quote myself in the Scalar Type Hints thread, here=E2=80=99s a rough t= ally of > who was in favour of what in the v0.1 thread (I think =E2=80=9Cyourself= =E2=80=9D was Zeev > in that context): > Zeev and I aren't twins (thank god for him) and aren't always in agreement on such topics. Looks like I am not on that list. Don't see him either btw... Anyway, I think I need to sleep on it... I understand what you're trying to do. It's definitely not a crazy strict type hinting approach (which would be very bad)... But I find elements of it challenging... Andi > > On 15 Jan 2015, at 14:51, Andrea Faulds wrote: > > > > Let=E2=80=99s have a look. From a quick skim over the thread for v0.1: > > > > * In favour of weak types (or the RFC anyway): Adam, Stas, yourself, > Jordi, Pierre, > > * Against, in favour of strict types: Maxime, Nikita, Markus, Marco, > Leigh, Levi, Sven(?) > > * In favour of strict types, not against weak types as compromise: > Matthew > > * Somewhat in favour: Sebastian > > * In favour of allowing both approaches: Marcio, Thomas, Marco > > > > I apologise if I am misrepresenting anyone=E2=80=99s position. > > > > This is unlikely to be super-representative of the PHP community. > However, I=E2=80=99m not sure I=E2=80=99d say =E2=80=9Coverwhelmingly pos= itive=E2=80=9D. It can be easy to > get confirmation bias when reading RFC threads. > > > > It is very clear to me that a lot of people would like strict types, an= d > some people would like weak types. As to their relative numbers, I cannot > say. > > > > I don=E2=80=99t think it=E2=80=99s really fair to cover only the use ca= se of one half of > the PHP community. The other half counts too. This is a rather divisive > issue. > > As is rather clear, there was no such consensus on internals. Confirmatio= n > bias can be a powerful thing, and it=E2=80=99s easy to forget that the nu= mber of > messages doesn=E2=80=99t reflect the number of participants. > > The views on other places were, from my experience, even more against wea= k > types than internals. Internals seems to be the most pro-weak types PHP > community I=E2=80=99m a part of. > > Because of this schism, I really think it would be completely unfair to > force through weak types. I know internals might like it (or some of > internals, anyway), and I know you and Zeev certainly do, but it=E2=80=99= s not as > clear-cut in the wider community. > > This isn=E2=80=99t some minor issue, either: it=E2=80=99s a very frequent= ly resurfacing > topic, and one which is particularly divisive. It=E2=80=99s not some mino= r syntax > issue that merely holding a vote will solve. > > -- > Andrea Faulds > http://ajf.me/ > > > > > --001a1133b5721b73a5050e607054--