Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96808 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30348 invoked from network); 10 Nov 2016 09:11:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2016 09:11:55 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.216 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.216 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.216] ([81.169.146.216:28159] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/4F-15787-8D934285 for ; Thu, 10 Nov 2016 04:11:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1478769110; l=5641; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=omhhjGXGIPeuL3PxV+VMKZg8x7E9qnt1Blpb1ulKsm4=; b=lJIAT353Xkmr3DxQxoB9QnTsvXvXTEmnQqEeztCOdgfZ1lHXe8mUqkOhvqZppDKOEL wXz1/jR4FVUUl2uFYtYFt7DzWPYZoscZXT8onodz/ScFfKnhFO6xXWk/E6UyPPPFgf5y UhMHmThUHmRuTn4l4LRfklkikpQXAEjHQC3YM= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtOnE6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f52.google.com ([74.125.82.52]) by smtp.strato.de (RZmta 39.9 AUTH) with ESMTPSA id a06db5sAA9BoCKq (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Thu, 10 Nov 2016 10:11:50 +0100 (CET) Received: by mail-wm0-f52.google.com with SMTP id f82so17745943wmf.1 for ; Thu, 10 Nov 2016 01:11:49 -0800 (PST) X-Gm-Message-State: ABUngvfBFB8N4TdAc1sq383ZC8xNBibD63nah/S1opdcU+s+DyVj4JHomdQh3YMuPHEIZ14Cmq/R9UAPx6PoIg== X-Received: by 10.194.164.226 with SMTP id yt2mr3691786wjb.201.1478769109845; Thu, 10 Nov 2016 01:11:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.135.133 with HTTP; Thu, 10 Nov 2016 01:11:49 -0800 (PST) In-Reply-To: <0c171a20-c72d-4157-1117-6628a52dd1f0@gmx.de> References: <0c171a20-c72d-4157-1117-6628a52dd1f0@gmx.de> Date: Thu, 10 Nov 2016 10:11:49 +0100 X-Gmail-Original-Message-ID: Message-ID: To: "Christoph M. Becker" Cc: Joe Watkins , =?UTF-8?Q?Micha=C5=82_Brzuchalski?= , PHP Internals List Content-Type: multipart/alternative; boundary=089e0117740f7f56ed0540eec33e Subject: Re: [PHP-DEV] [RFC][VOTE] Object typehint From: me@kelunik.com (Niklas Keller) --089e0117740f7f56ed0540eec33e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2016-11-09 21:53 GMT+01:00 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 i= s > > 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). > We already have it for iterable -> array. We would have it for all other types if there wouldn't be an implementation issue. Regards, Niklas 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=C5=82 Brzuchalski .com> > > 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=C5=82 Brzuchalski > >> about.me/brzuchal > >> brzuchalski.com > >> > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e0117740f7f56ed0540eec33e--