Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82990 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 725 invoked from network); 17 Feb 2015 17:22:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2015 17:22:25 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.214.175 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.175 mail-ob0-f175.google.com Received: from [209.85.214.175] ([209.85.214.175:44420] helo=mail-ob0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/66-19463-0D873E45 for ; Tue, 17 Feb 2015 12:22:24 -0500 Received: by mail-ob0-f175.google.com with SMTP id va2so55701650obc.6 for ; Tue, 17 Feb 2015 09:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2lwfUzHR8z20LEHNFm8YnH389FfMzlddkAGWcDg1Zs8=; b=uvoawSnu3+72hzwa2P4FUKb2h6vY0gBU6ijhGhEUfoYk3zsh7ownAEyRrYbAoW6a+R S8QccbiZ7nADmhw2mmfeGid5TWDMbFd6Bxo5gD6EteENxeQ541mNAObgKYTFHy1FNz3Q tdbseRN9bbJnbvq9qE2eturjeUrdbMVjzv9fE= 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 :content-transfer-encoding; bh=2lwfUzHR8z20LEHNFm8YnH389FfMzlddkAGWcDg1Zs8=; b=nHi/COoVjpaOYhdGoYo8oM+eEwt+EgIzsgWKA+LtErlIL9aVHBFsfpAm0F4t0O1bIj OyZRZGfxElmY6zBVjE1fcjYFoLGfiobFkRK//ooyzgu0IgqUkykrkmyacPg6v1WKdgOk dkhq52W6OmtQc81jn2X31XbotdIgckeZg0dfXLEHdqo8v01ZIRxPRP8JDEBI/n010Pu/ 2jT4VnehX5YD/4oO7izNf9McwuFNhcd9IAC57ODV6fkXCjppObkmU5eGPj+M64HCGD8i pzhtuTfKoZcp+0aH5wjYe+jrd4siG8a3lh4G61Wk/SOL0NJSC2TCXJoJ0eSnPwLMVqWL oelQ== X-Gm-Message-State: ALoCoQlUw5/fXEg8fAKUjVmYj7X4xcuEKvJlxomKcNn17h0eycF6R+LsPJYohfI1zsVgsG3YPJx3 MIME-Version: 1.0 X-Received: by 10.202.64.9 with SMTP id n9mr18135875oia.20.1424193741600; Tue, 17 Feb 2015 09:22:21 -0800 (PST) Received: by 10.202.214.205 with HTTP; Tue, 17 Feb 2015 09:22:21 -0800 (PST) In-Reply-To: <2CBDEB67-3DE3-437D-9AF3-0E6A92027244@zend.com> References: <011801d04a07$83ab1c00$8b015400$@php.net> <016f01d04a3a$e9183220$bb489660$@php.net> <022801d04ab1$4a0c47d0$de24d770$@php.net> <1913e09d7f52541901d8574d2080a63f@mail.gmail.com> <7a5d96b34b98ec1f3ee17be7fa6a1e81@mail.gmail.com> <2CBDEB67-3DE3-437D-9AF3-0E6A92027244@zend.com> Date: Tue, 17 Feb 2015 19:22:21 +0200 Message-ID: To: Zeev Suraski Cc: Anthony Ferrara , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Reviving scalar type hints From: narf@devilix.net (Andrey Andreev) Hi, On Tue, Feb 17, 2015 at 6:50 PM, Zeev Suraski wrote: > >> On 17 =D7=91=D7=A4=D7=91=D7=A8=D7=B3 2015, at 18:32, Andrey Andreev wrote: >> >> Hi, >> >>> On Tue, Feb 17, 2015 at 6:11 PM, Zeev Suraski wrote: >>> >>> If it gave both sides exactly what they wanted, how come it generated s= o >>> much objection? >>> >>> Simply put, because it absolutely doesn't give both sides what they wan= ted. >>> Many (most?) of those who opposed it opposed it because they believe ma= king >>> zval.type as prominently available as the RFC did is bad for PHP. >>> Consequently, this whole 'adding both gives everyone what they want' is >>> simply wrong. >> >> I agree that it doesn't give everybody what they want - it only gave >> weak hint supporters *all* that they want. > > Andrey, > > I'm a weak typing supporter; I want PHP to never make it easy at the lan= guage level to treat "32" and 32 differently; The RFC did exactly that. > Yes, I already know that. The difference, and why I keep pointing that out, is that me and many others want strict typing for our own reasons (but still in its entirety instead of as a limited mode) and most of us don't even care if you getting weak typing for your own usage. You can't work towards consensus if your target is to prevent the opposing group of getting what they want. I see both as valuable tools for different jobs and I want to have more tools at my disposal, while you're trying to tell me that I should use only one tool for everything. > -> The v0.3 RFC didn't give weak hint supporters everything they wanted. = QED. > >> Many also objected because strict typing was only opt-in and could >> never affect the caller's code unless the caller explicitly declares >> that they want to do that. You're ignoring that and you're twisting it >> the other way around. > > It's enough to provide one counter example to disprove an assertion - the= assertion that the v0.3 RFC gave everyone what they wanted - and I provide= d the one I can personally attest to. I certainly didn't claim strict typi= ng supporters got everything they wanted, so I'm not sure why I'm twisting = anything. If anything, you're only making the point that the v0.3 RFC does= n't give everyone what they want stronger. > Yes, I am making the point stronger. But you implied that most objections were from people who don't want strict typing in PHP at all. And I disagree with that because it's a speculation, which in turn you are using to favor your weak-hints-only case (hence, twisting it in another direction). > I think the options we're discussing here take us away from this zero sum= game, provides benefits to both schools of thought, and it seems to me as = if you were open to it. I'd much rather we invested our energies there! > > Zeev Cheers, Andrey.