Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82978 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78363 invoked from network); 17 Feb 2015 16:11:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2015 16:11:26 -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 209.85.223.177 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.223.177 mail-ie0-f177.google.com Received: from [209.85.223.177] ([209.85.223.177:46788] helo=mail-ie0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/32-19463-E2863E45 for ; Tue, 17 Feb 2015 11:11:26 -0500 Received: by iecvy18 with SMTP id vy18so41800607iec.13 for ; Tue, 17 Feb 2015 08:11:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=vNipbf7VAlvy3APS+PwSCKO+ZjXl7GekbQMw9eWMwzE=; b=CWtOapNNCuJGEdE8eF2o0aV1E2t1Jp78Wd3vxJSbc+8XNhaRkNq4Cwv+LPQSjKZxmC HR7GNM06ItthMPzLr9facOohsENqPOFou4DutL46hXKYMlOa3KbM9Ry7UCAdLbgm069k iQXa+Olzo8l1ByQWwfCuUj+oLLKFedZd1MDSTKYOkrFcTjU4xjf0TJF7wh3C/X/TYlo1 fYxHRLceTfbS0bkFi3jusGsd6aLdgeP1Waf9vjIGOGYKuip+jvWFsY2lYN3IcPVaeuSz B9xp5sIUjinDnmm+SxmZ4b5RPWo3vyOtQpN/DszihR2mZQSTRZsFiDApY6TGLS7ij+/a y4Pw== X-Gm-Message-State: ALoCoQngCW4JvQkGFxHQCeZK2FCGLElW8nHS919WzeKKnCHWos1DfINnozQEwLwmb7qMXw6/9dtiX2Nwg99QotI/xOnBmz+Oel6PwJ8leidZvOEZHiNV0uFrD2Vx3VREk9nh2n89o7p6VzYmEWA89nd3SP29u9WFrA== X-Received: by 10.107.15.96 with SMTP id x93mr36917193ioi.75.1424189483094; Tue, 17 Feb 2015 08:11:23 -0800 (PST) References: <011801d04a07$83ab1c00$8b015400$@php.net> <016f01d04a3a$e9183220$bb489660$@php.net> <022801d04ab1$4a0c47d0$de24d770$@php.net> <1913e09d7f52541901d8574d2080a63f@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGD0sLDaA+/0NIeBlQhQC5OtPA/xwHih9+6AanvcsEBj7eMCwEU0CpMAs0H7+gBDwGZjwJNu28fAX8sxVSdHx2oIA== Date: Tue, 17 Feb 2015 18:11:22 +0200 Message-ID: <7a5d96b34b98ec1f3ee17be7fa6a1e81@mail.gmail.com> To: Anthony Ferrara Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: RE: [PHP-DEV] Reviving scalar type hints From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Anthony Ferrara [mailto:ircmaxell@gmail.com] > Sent: Tuesday, February 17, 2015 5:48 PM > To: Zeev Suraski > Cc: francois@php.net; Sara Golemon; PHP internals > Subject: Re: [PHP-DEV] Reviving scalar type hints > > Zeev et al, > > Because it > **wasn't** a compromise (neither side had to give up anything). It gave > both > sides exactly what they want and need while letting them work together > transparently. If it gave both sides exactly what they wanted, how come it generated so much objection? Simply put, because it absolutely doesn't give both sides what they wanted. Many (most?) of those who opposed it opposed it because they believe making 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. It's not unique to this RFC either; There's a reason we don't accept all proposals, including countless ones that have zero compatibility/performance issues, just because we don't think they're a good fit for the language. Regarding your point about static analyzers, based on what I saw on this list it hardly seems that this is the main reason most proponents of strict types are interested in them. I, for one, think developer productivity is a lot more important than making life easy for static analyzers, and static analyzers should be designed around the language, not vice versa. I urge you to consider the fact that the solution that 'gives everyone what they wanted' is hardly that at all, and we're trying to find a potential compromise that will hopefully have a lot fewer people objecting to it. If we succeed, not everyone will get everything they want, but hopefully a lot more people will be able to join the yes vote. Zeev