Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84764 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20202 invoked from network); 14 Mar 2015 09:07:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2015 09:07:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.114.167 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.114.167 spritz.beccati.com Received: from [176.9.114.167] ([176.9.114.167:33002] helo=mail.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/00-19236-56AF3055 for ; Sat, 14 Mar 2015 04:07:50 -0500 Received: (qmail 22901 invoked from network); 14 Mar 2015 09:07:45 -0000 Received: from home.beccati.com (HELO ?192.168.1.202?) (88.149.176.119) by mail.beccati.com with SMTP; 14 Mar 2015 09:07:45 -0000 Message-ID: <5503FA5C.6080406@beccati.com> Date: Sat, 14 Mar 2015 10:07:40 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Thomas Bley , internals@lists.php.net, bobwei9@hotmail.com CC: zeev@zend.com, guilhermeblanco@gmail.com References: <325E0097-FD7E-4997-A95D-20C62368E162@zend.com> <55031C54.6060802@eliw.com> <7CE491F0-C243-4788-ADA2-5DA9DF1D1168@php.net> <332304ae552bfc635f999a8d73b505f0@mail.gmail.com> <20150313234038.81DEB260191@dd15934.kasserver.com> In-Reply-To: <20150313234038.81DEB260191@dd15934.kasserver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Basic Scalar Types From: php@beccati.com (Matteo Beccati) Hi, On 14/03/2015 00:40, Thomas Bley wrote: > I think it's time to close the scalar type hinting chapter and focus > on new challanges. We have a rfc with a majority, so I would like to > ask Zeev, Francois and Dmitry to withdraw their rfc and open the door > for finalizing php7, many people are waiting for. For 7.1 we all know > how scalar type hints work in practice and know if we should remove > declare(strict...), add coercion rules or stay with the v0.5 > behaviour. I, as some (many?) others, have voted YES on v0.5 (and v0.3 before it) not because I like dual mode, which I don't, but because it seemed to be the only way to get STH in PHP7. As an open source project maintainer it will be years anyway until I can drop pre-PHP7 compatibility and use STH. But as a consultant I'd certainly hate to constantly switch between weak/strict depending on the code base (or 3rd party lib) I'm currently working on. And I certainly wouldn't like a future where all PHP code uses strict STH as some seem to envision. I certainly wish that "Basic STH" was proposed weeks ago by Zeev instead of "Coercive STH". By all means I appreciate the attempt at pleasing multiple camps, and I initially favoured it, but I ended up realising its shortcomings. So, if I was given the opportunity to vote on all three, it would be YES for Basic and NO for dual and coercive. If we can get Basic to vote and in the end it looks like it won't pass I'll gladly switch my vote back to v0.5. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/