Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1991 invoked from network); 21 Feb 2015 21:38:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2015 21:38:39 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.176 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.176 mail-we0-f176.google.com Received: from [74.125.82.176] ([74.125.82.176:36780] helo=mail-we0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/96-08895-CDAF8E45 for ; Sat, 21 Feb 2015 16:38:38 -0500 Received: by wevk48 with SMTP id k48so11526519wev.3 for ; Sat, 21 Feb 2015 13:38:34 -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=ae2v0C9THh/s2PKlJtD0N70bUwrhCCyAVdk/WyOUL/s=; b=D0zhEIVKSuKYGpCYN2zzGw4s++kffK0RGg66IcKf3DDyNY+vdzx554CGdX0bV5Igcu yxhtj9IKqJGMCfQW2ACzdDCuwbpjjaWWT5iYAeKB6Gf38SynIT0C322aW5CYwpWbS/F0 7iCe0E+Ssk0NOr7AHD/CX4eOmHbdnAK9aqFakYJpItIYU3BoYotBL8v00eV4A+9Mw4jL CTBISoQ6FR6nA4WF16GzQMLyrajvjwOcFo6zYytg8czrXhyUQg5rVZWAxygCVo2ywimU 1j1cz/RqCOcfFtWROKaSH2FfNTpjsanN8d+L7aRaDJL5QVuZy/fs2bH/1NHvw/fFGPcd bRzA== X-Gm-Message-State: ALoCoQmjRVbYfqCLT2ZogQkyRrRboFQGXkvL993/mrtBmAqT+x/MqEOq6z8ie2+gOj+6cYdfUjLc MIME-Version: 1.0 X-Received: by 10.180.149.242 with SMTP id ud18mr7039505wib.94.1424554713965; Sat, 21 Feb 2015 13:38:33 -0800 (PST) Received: by 10.194.192.202 with HTTP; Sat, 21 Feb 2015 13:38:33 -0800 (PST) X-Originating-IP: [77.11.1.19] In-Reply-To: <7ef509ef10bb345c792f9d259c7a3fbb@mail.gmail.com> References: <7ef509ef10bb345c792f9d259c7a3fbb@mail.gmail.com> Date: Sat, 21 Feb 2015 22:38:33 +0100 Message-ID: To: Zeev Suraski Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c26958b07cb3050f9ffd7c Subject: Re: [PHP-DEV] Coercive Scalar Type Hints RFC From: kontakt@beberlei.de (Benjamin Eberlei) --001a11c26958b07cb3050f9ffd7c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Zeev, On Sat, Feb 21, 2015 at 6:22 PM, Zeev Suraski wrote: > All, > > > > I=E2=80=99ve been working with Fran=C3=A7ois and several other people fro= m internals@ > and the PHP community to create a single-mode Scalar Type Hints proposal. > > > > I think it=E2=80=99s the RFC is a bit premature and could benefit from a = bit more > time, but given the time pressure, as well as the fact that a not fully > compatible subset of that RFC was published and has people already > discussing it, it made the most sense to publish it sooner rather than > later. > > > > The RFC is available here: > > > > wiki.php.net/rfc/coercive_sth > > > > Comments welcome! > I was really looking forward to the RFC. However the dependence on an INI setting and the question of massive internal BC break are a bit too much I think. They are necessary as you explain to allow internal functions/ZPP to have the same conversion rules as userland functions. This INI setting is quite similar to introducing two modes as well, but on the server configuration level instead in a much more fine granular way in scalar type hints v0.5. I see much more compatibility problems for third party libraries here. Now if I had to decide between having two modes on a granular file level or an INI setting (option 2/3) or massive BC breaks (option 1) to get scalar type hints in PHP, then two modes with declare() doens't look, because I can pick the mode I want, and no-one can force it on me. > > Zeev > --001a11c26958b07cb3050f9ffd7c--