Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96809 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33433 invoked from network); 10 Nov 2016 09:53:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2016 09:53:21 -0000 Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.179 as permitted sender) X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.213.179 mail-yb0-f179.google.com Received: from [209.85.213.179] ([209.85.213.179:34699] helo=mail-yb0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/BF-15787-D8344285 for ; Thu, 10 Nov 2016 04:53:19 -0500 Received: by mail-yb0-f179.google.com with SMTP id d59so50060414ybi.1 for ; Thu, 10 Nov 2016 01:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FVfCnocXqKIfEWXPFjco/+hluf245MO9i/n979ipfnc=; b=rdOZU9xrmUG8CgZXhEOHuBh4irSpsygB9IrApusoOH+j+VvFraUM6PebjC20trtNAS ikqbBUO8RUL8XrmWX2G1Og7Uq4SsmNqrb7CRWTEk4uEDTnXKvpdk/wIWfBL0rFgSJ5Qj eWXZs4Vy9bzp6JQFotE2DoJScG/BtYT7RNNZHeX2wTK+pxDqg5cCPlsmZCrvT+CCeV9x BN+Vpr/4FrfutoaeR4UmVceccwS60z5xbePUvMJGw02NV7uodL+vCSuY64alsM/cToEj FKRc6ayKvZ8N3v0E3BxMLuw4MLgrP5DAlIlu+izARKcprSABdZCRAIGyEjBcAjFo0B79 fpCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FVfCnocXqKIfEWXPFjco/+hluf245MO9i/n979ipfnc=; b=Y4LSOaaGKqe+QAoMgrEuRkrVSUXBDdOM1oYFw0y+KCbuurvfhCX0aF6or/e3l1nrfs uoUD5xl/41o09zZ9pkmy4pr03PMfVk2MLfOfbFVo/zA0/qAFzHZqreigQbxWkEhGeyDn wEcWydIcBxJSqaRu7Ruu2BO8fBwn33xJHo3Y7eAHGn8lOyYso0lUoPoHp9qwgs0sS/26 3E5zzDPlEP4xLhYESvHPGjj4YIU4OG95q/N9N29eX+XFeIWMYtIvLPoKdfmF9uKfk78D mXNxe65HLZW2LtI+I8d+Q8fLHrsbhpgtZ80Bzjv9jrw5yoZEVGGThsVeDkr20pEEEblT +zqg== X-Gm-Message-State: ABUngvf0ioyjwxBo4koowc/2MUMsVdDLiu43p6bVb/P9cn1ueDaH2I5k0ng/KsSt7Y9fc1umURE4BGaumNi8AQ== X-Received: by 10.37.201.65 with SMTP id z62mr3912691ybf.113.1478771594576; Thu, 10 Nov 2016 01:53:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.36.2 with HTTP; Thu, 10 Nov 2016 01:52:33 -0800 (PST) In-Reply-To: References: <0c171a20-c72d-4157-1117-6628a52dd1f0@gmx.de> Date: Thu, 10 Nov 2016 09:52:33 +0000 Message-ID: To: Niklas Keller Cc: "Christoph M. Becker" , Joe Watkins , =?UTF-8?Q?Micha=C5=82_Brzuchalski?= , PHP Internals List Content-Type: multipart/alternative; boundary=001a114d6db099492b0540ef57bd Subject: Re: [PHP-DEV] [RFC][VOTE] Object typehint From: petercowburn@gmail.com (Peter Cowburn) --001a114d6db099492b0540ef57bd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10 November 2016 at 09:11, Niklas Keller wrote: > 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 > is > > > something that is usually difficult to achieve in PHP, but not for th= is > > > 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 t= he > > >> Sunday 2016-11-20 at midnight. > > >> > > >> The RFC and voting widget can be found here: > > >> https://wiki.php.net/rfc/object-typehint > The vote appears to be closed right now, did I miss an announcement? > > > >> > > >> 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 > > > > > --001a114d6db099492b0540ef57bd--