Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93075 invoked from network); 17 Feb 2015 16:50:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2015 16:50:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 74.125.82.45 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 74.125.82.45 mail-wg0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:63988] helo=mail-wg0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/05-19463-26173E45 for ; Tue, 17 Feb 2015 11:50:42 -0500 Received: by mail-wg0-f45.google.com with SMTP id k14so34141114wgh.4 for ; Tue, 17 Feb 2015 08:50:39 -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=XRoyTFBJrcxN1HQc5nZ+hDHvkXjYS/EPUgLBfwvpLZQ=; b=JRlEjrME1/n6yjgh8vZGFOgKj6jFsyVeXLGIrdwOcZhkwx2WIes1AgFjj5LEJ6Vu44 WwamdhgtUGiHz23AhJSU8MPaVSZTve77uVyUo6E8JqdpBmSBjPR+D4HszdOyFuQxHmhc xbUL6/J5BH1MNjx5J7O1CPB1wmd9zDbYI8nzTcF9dsJJlwgj1IAxs1OFW6Onq2RbSbJt SQHDoMPPcUqa1TPw3dJu5rg6WjRy1iHXSbng1i01WdakiZx37/gmVi0DYlXl/27aWejm scqzLY9u/K4rYAhVWr2OxkWG+DHCfLJZgfM+ThKm+psvGYw0bQUV+56pItCowsn6VJZe 8XmA== X-Gm-Message-State: ALoCoQnq1IO/hSaidcMMlLyO+hJEBFKLQQRsFtv9xjf45449wnKKo/zpaF/5eIv7Gk37ZcLe5ZTEIpAXeUREFVYgP5nD+fQ9F2b08mls4SNZuQdqmwrImOnKKdduYqIvO3Tqw5JXGLxrTVlOrCIioYewk4EN8DTyrA== X-Received: by 10.180.10.131 with SMTP id i3mr59995280wib.54.1424191838971; Tue, 17 Feb 2015 08:50:38 -0800 (PST) Received: from [10.165.93.191] ([2.54.14.104]) by mx.google.com with ESMTPSA id 18sm28155947wjr.46.2015.02.17.08.50.37 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Feb 2015 08:50:38 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12B466) In-Reply-To: Date: Tue, 17 Feb 2015 18:50:35 +0200 Cc: Anthony Ferrara , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <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> To: Andrey Andreev Subject: Re: [PHP-DEV] Reviving scalar type hints From: zeev@zend.com (Zeev Suraski) > On 17 =D7=91=D7=A4=D7=91=D7=A8=D7=B3 2015, at 18:32, Andrey Andreev wrote: >=20 > Hi, >=20 >> On Tue, Feb 17, 2015 at 6:11 PM, Zeev Suraski wrote: >>=20 >> If it gave both sides exactly what they wanted, how come it generated so >> much objection? >>=20 >> Simply put, because it absolutely doesn't give both sides what they wante= d. >> Many (most?) of those who opposed it opposed it because they believe maki= ng >> 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. >=20 > 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 langua= ge level to treat "32" and 32 differently; The RFC did exactly that. -> The v0.3 RFC didn't give weak hint supporters everything they wanted. QE= D. > 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 as= sertion that the v0.3 RFC gave everyone what they wanted - and I provided th= e one I can personally attest to. I certainly didn't claim strict typing su= pporters got everything they wanted, so I'm not sure why I'm twisting anythi= ng. If anything, you're only making the point that the v0.3 RFC doesn't giv= e everyone what they want stronger. I think the options we're discussing here take us away from this zero sum ga= me, provides benefits to both schools of thought, and it seems to me as if y= ou were open to it. I'd much rather we invested our energies there! Zeev=