Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90295 invoked from network); 2 Feb 2015 08:53:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 08:53:57 -0000 Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; 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:56706] helo=mail.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/84-02376-42B3FC45 for ; Mon, 02 Feb 2015 03:53:57 -0500 Received: (qmail 30143 invoked from network); 2 Feb 2015 08:53:52 -0000 Received: from home.beccati.com (HELO ?192.168.1.202?) (88.149.176.119) by mail.beccati.com with SMTP; 2 Feb 2015 08:53:52 -0000 Message-ID: <54CF3B1A.9090505@beccati.com> Date: Mon, 02 Feb 2015 09:53:46 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Michael Wallner , Andrea Faulds CC: PHP Internals List References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: php@beccati.com (Matteo Beccati) On 02/02/2015 09:49, Michael Wallner wrote: > >> On 02 02 2015, at 00:49, Andrea Faulds wrote: >> >> Good evening, >> >> The RFC has been updated to cover return types, since Levi’s Return Types RFC has passed. The patch is a work in progress: it works, but lacks tests for return types. >> >> Version 0.3 of the RFC can be found here: https://wiki.php.net/rfc/scalar_type_hints > > I think v0.1 had pretty good chances to get accepted, but I’m not so sure about anything that followed. > I’m definitely -1 on declare(strict). I agree. I understand that someone might prefer strict typing, but declare() seems so different from anything else in php. I think I've only used it when I needed signal handling and even in that case it felt so weird. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/