Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78613 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68683 invoked from network); 4 Nov 2014 08:06:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Nov 2014 08:06:51 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hoa-project.net designates 212.85.154.38 as permitted sender) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 212.85.154.38 unknown Received: from [212.85.154.38] ([212.85.154.38:40750] helo=mail.hoa-project.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/62-24107-71988545 for ; Tue, 04 Nov 2014 03:06:48 -0500 Received: from MacBook-Air-de-Hend.local (206-226.4-85.cust.bluewin.ch [85.4.226.206]) by mail.hoa-project.net (Postfix) with ESMTPSA id A2F8A20522 for ; Tue, 4 Nov 2014 09:06:44 +0100 (CET) Message-ID: <54588915.3010601@hoa-project.net> Date: Tue, 04 Nov 2014 09:06:45 +0100 Reply-To: ivan.enderlin@hoa-project.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][Vote] Return Types From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") Le 04/11/2014 03:01, Levi Morrison a =C3=A9crit : > Dear Internals, > > I am pleased to announce that the return type RFC is now open for > voting[1]. Note that the implementation needs a bit of cleaning up > before merging should the RFC be accepted; Dmitry has already > volunteered to help with that, but more eyes are welcome. > > A couple of things have changed in reflection[2] since the last > iteration, but is otherwise the same. > > The implementation is slightly out of date with the RFC, but soon it > will be updated to match. > > [1]: https://wiki.php.net/rfc/returntypehinting#vote > [2]: https://wiki.php.net/rfc/returntypehinting#reflection Excellent RFC, thank you. However, there is no mention about using=20 `static`, `self` or `parent` as a type (it is possible for an argument). = Something like: ```php class Singleton { public function getInstance ( $x, $y): static { =E2=80=A6 } } ``` Maybe I miss it in the discussion? Thoughts? Regards. --=20 Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/