Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96796 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80986 invoked from network); 9 Nov 2016 20:53:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2016 20:53:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:64239] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/99-15787-FCC83285 for ; Wed, 09 Nov 2016 15:53:36 -0500 Received: from [192.168.2.103] ([79.243.119.150]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LufbI-1cmXWW3Fa4-00zmLt; Wed, 09 Nov 2016 21:53:24 +0100 To: Joe Watkins , =?UTF-8?Q?Micha=c5=82_Brzuchalski?= References: Cc: PHP Internals List Message-ID: <0c171a20-c72d-4157-1117-6628a52dd1f0@gmx.de> Date: Wed, 9 Nov 2016 21:53:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:pUrQ/5CRjpFxNWU0GKQqq/04+7AMwOthXz2PFIr22Eyx+6tNtY5 g3HAFQ691vqLExBRdqyo/9fKS/x1Ws0uUxnvYXHKPbrJ7C32uPmyxi78S+2x/Msi6B4S5wg D/MgNM1AwAkCEq7i8XUGEdR9RZqIRz00Gt8gRhXVR48sYdJOVhhsD5gSRlMY75us9qsadQJ 6hZ7F1a7FsOqgTRDLYKBg== X-UI-Out-Filterresults: notjunk:1;V01:K0:xIDcJ+sLpDI=:jTpPAxWyw5DkKH1oViGrlp SLhMEekjGbcrBysDlOCEumUATCCZeTLT4XeW2mH4MxggYffioj4OjNZ/iFU4Q9fnxJK6K4YBk +DqPI2OdjPnqWUDe7A+1/i19Vun3b2nviEazIE5I0qWcQSYk1pP0T4SzvaeF7++D3+xZ7nyME cyCT2JlYZ/yMpv5vaMsZqRKuWrJtnWg/KdQZrBIPzBEyFTEljk/VfCeb7xQ2Zf0JJmFInsboq v61XVDxH6UAgXHKKYlJV6GuB1wEX3zkEFdiB+tSE59OM5IMMsthROtlKzBb/jE8XRFGiNVUsC 7zpNFPecXy0/c8NQaXBYfOxCmUmRUt1I6+13+R8bbGGo9ndJtY8crakhPXujdazl2F0itHeSU zdGBL809rf8JLJX5lVDkVqsd8NF1NpStNsVz62QFhUlCAVzmLISbKHb9OuyHh5Qw/aJnsh5m+ RwKG2b9NV6lagEFty9BAY9dxcWcpmC1GjNqzROQvkgK3kPkVWgHQYC5E30lCdKtuoo6O5j4FK rgKGzG4lPKTko4w2g1omeHFYytygu/xbGzsMKLB1J09mecLxE8FpCLrJTTMU7Qt43Rmivzv1I /cuFCuoWVkRuHQPzTr+3+u09ZUQugTHiEYxKsSvtsR2Ku7Y1YGA0DQUBIomMiiSyxPi/XUxCJ vnFk0ovzz74vFBWjBgYnlpySGRpgvr0zEJSMuqObJ4AIHKZZv1YoTcGYa06GqFEhjdBvmt8qK Lze3ZXPP9x1uRmDTBKqYEjp6jaObSyGkXiqSBPG3HkaNTp0XE4NTv4Y/IF5rt4EbNBD9rclsT vIAK6F4 Subject: Re: [PHP-DEV] [RFC][VOTE] Object typehint From: cmbecker69@gmx.de ("Christoph M. Becker") On 09.11.2016 at 17:28, Joe Watkins wrote: > I want to explain why I voted no on this: > > I think it's significantly less useful without variance, variance is > something that is usually difficult to achieve in PHP, but not for this > feature in particular. Can you please elaborate what you mean with variance? I see some practical use cases for covariance of a method with return type object, but I don't see how contravariance could be achieved for parameters of type object. If your suggestion is only about invariance of object return types, I'm not sure if this very special case would make sense (for consistency reasons). Cheers, Christoph > I absolutely want it, but I want it to be properly useful. > > If the RFC were halted and patched to include variance, I'd +1 it. > > Cheers > Joe > > On Sun, Nov 6, 2016 at 5:28 PM, Michał Brzuchalski > wrote: > >> Hi everyone, >> >> Two weeks have passed since this RFC was put to discussion here. >> >> Therefore, I'm going to put it to a vote for inclusion in PHP 7.2. >> >> Voting starts today, 2016-11-06, and will close after two weeks on the >> Sunday 2016-11-20 at midnight. >> >> The RFC and voting widget can be found here: >> https://wiki.php.net/rfc/object-typehint >> >> It's a normal 2/3 majority required vote. >> >> Thanks! >> -- >> regards / pozdrawiam, >> -- >> Michał Brzuchalski >> about.me/brzuchal >> brzuchalski.com >> >