Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77174 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56662 invoked from network); 14 Sep 2014 09:12:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2014 09:12:25 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.172 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.172 mail-qc0-f172.google.com Received: from [209.85.216.172] ([209.85.216.172:39150] helo=mail-qc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/00-53483-9FB55145 for ; Sun, 14 Sep 2014 05:12:25 -0400 Received: by mail-qc0-f172.google.com with SMTP id i17so2665061qcy.17 for ; Sun, 14 Sep 2014 02:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=E7Vg6kAnfHKiPOu0YsYEvCt3bD9CE4NkDFBCkgCcr2U=; b=dd4Sg186LFrjo+dMHC2u2GoAnZdJwXijbRGkn8StdEWWK63kPOirT4eNlyTvfB5nBN QjW9H6wR8uKdJc6d0pBGLEwifoTZ1d8trBfUx2HwisP4sCQKbY7oYP4CHq66VOMerQ8/ mBCfBezPDQd/QS2rua4e3VH5wwvXOo4xMKif0X0aqcjKP2c5xXJmkHPRh7SaFcrbSyH8 0n/lOUPrtUSWH0GiNAyt/DMn54Ji6HQyQpX9Dbgr9V2/PewaI+ZWFj7ik5G73r7fdU6z uhBO05qUQEmo4ckh0h+MvNthvJyAXChbnlJHHq4+aUcTiy2JfV4ePMA7pkENjE2FnAcd 3r2A== MIME-Version: 1.0 X-Received: by 10.224.88.71 with SMTP id z7mr547750qal.94.1410685942591; Sun, 14 Sep 2014 02:12:22 -0700 (PDT) Received: by 10.140.22.51 with HTTP; Sun, 14 Sep 2014 02:12:22 -0700 (PDT) In-Reply-To: <6893A97A-EC4C-4124-B804-96E2A26B953F@ajf.me> References: <6893A97A-EC4C-4124-B804-96E2A26B953F@ajf.me> Date: Sun, 14 Sep 2014 11:12:22 +0200 Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast From: pierre.php@gmail.com (Pierre Joye) hi Andrea, On Sun, Sep 14, 2014 at 1:30 AM, Andrea Faulds wrote: > Good evening, > > I=E2=80=99ve given up on my plan B, so I=E2=80=99m putting this RFC, fina= lly, to a vote. > > I would urge you to vote in favour. It is not going to please everyone, i= t is after all a compromise proposal. However, I have tried my best to stri= ke a balance between complete weak typing and strict typing. If this passes= , we will finally have userland type specifiers for scalar types. It=E2=80= =99s not perfect, but I=E2=80=99d argue it=E2=80=99s far better than nothin= g. > > Voting starts today, 2014-09-14, and ends in a week=E2=80=99s time, 2014-= 09-21. Great job! It brings also some clarity and sense to type casting, at least for this ar= ea. I do not see much of a problem with the small delta with existing casting. I am not sure about the recoverable error, especially when old codes will use new implementations, it may have a bad impact depending on how the errors are a managed in a given library. But there is no BC per se in existing codes due to this. All in all, I will vote +1. No matter what we think what PHP should do, remain or be, this addition has been a long due request from the waste majority of our users. Let see what they think about it. Hopefully some lead devs of the major tools/libs/frameworks will post their views here. Cheers. --=20 Pierre @pierrejoye | http://www.libgd.org