Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80288 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96355 invoked from network); 8 Jan 2015 20:55:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2015 20:55:42 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.169 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.169 mail-vc0-f169.google.com Received: from [209.85.220.169] ([209.85.220.169:36113] helo=mail-vc0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/4C-21915-CCEEEA45 for ; Thu, 08 Jan 2015 15:55:40 -0500 Received: by mail-vc0-f169.google.com with SMTP id hy10so1987384vcb.0 for ; Thu, 08 Jan 2015 12:55:37 -0800 (PST) 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:date :message-id:subject:from:to:cc:content-type; bh=ziRyT8hciDVUhcmZx35cHwLvCXL0JTNmbGn6dZuXN2U=; b=lcDz22WnYcgwJOn5v0DbTXvMxUQ/wuNZGv5b2iRKeh8FUiZlxO7dpQSX+fjIUzKvfK 2sszRp4FH/RPvsX8MjyKNf64MXesJ1djrlLos7tNsIgMZitWSLixTlu5y1ySueK9k99M UhYXcfTsQ/nE3QKJ2QW8bNcZRGQ+PngOHRVeoMAjhO5k5G5LMY/rjhL0Rko5Ug+i9ERj jlzl59AZZCy6fkRbK3moNR3iEcxBGCIO9TRqB1zIGVszK8LRirtl9wAQ4SKS02hwwKiD UWrodXG2UnsRTHvyqRxTXVBWun8POtg+Fig3BDTg5i+CcbtTmxE4VrDfTFa2CIrw6ZSc Gz8Q== X-Gm-Message-State: ALoCoQnsYslBQJb0t8f1Xfupgn7vWMO0J3bI4IE3gIOvJdY/fRx834z8lWN5lsQG1V3VQvaUHTyDq4vJ42fip7a8g1fsFa7FQ+R2xXD8/rK6r2NZ4lNJe04iUJAKM94bO6uzllLrX+DHSp0d1Fwup/JCDvfvAsbc1A== MIME-Version: 1.0 X-Received: by 10.220.185.193 with SMTP id cp1mr8385882vcb.80.1420750537164; Thu, 08 Jan 2015 12:55:37 -0800 (PST) Received: by 10.52.26.40 with HTTP; Thu, 8 Jan 2015 12:55:37 -0800 (PST) In-Reply-To: References: Date: Fri, 9 Jan 2015 00:55:37 +0400 Message-ID: To: Levi Morrison Cc: internals Content-Type: multipart/alternative; boundary=089e01538610152228050c2a43fb Subject: Re: [PHP-DEV] Re: [Pre-Vote] Return Types From: dmitry@zend.com (Dmitry Stogov) --089e01538610152228050c2a43fb Content-Type: text/plain; charset=UTF-8 Hi, I've updated the implementation and now it's even more consistent (it shares code for return and argument type hinting). https://github.com/php/php-src/pull/986/files The implementation misses support for reflection. I think, it doesn't make a lot of sense to introduce Reflection support for return types but not for argument types. Probably, it's better to provide a single and consistent RFC for both. Thanks. Dmitry. On Thu, Jan 1, 2015 at 2:43 AM, Levi Morrison wrote: > On Wed, Dec 31, 2014 at 4:26 PM, Levi Morrison wrote: > > Dear Internals, > > > > I have changed the variance of return types to be invariant. I have > > given a further example of what invariance does and does not mean in > > the RFC, as there has been some confusion about it in previous > > discussions. > > > > Are there any other questions or major concerns before I put this to > vote? > > > > I don't have any at this time, except that I don't quite yet have a > > working implementation after some changes to master. I expect to have > > a working implementation in a couple of days at which point I intend > > to move it back into voting phase. > > > > Cheers, > > > > Levi Morrison > > My apologies; during some editing it seems I removed the RFC link: > https://wiki.php.net/rfc/returntypehinting > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e01538610152228050c2a43fb--