Re: [RFC][Vote] Return Types
| From: | Ivan Enderlin @ Hoa | Date: | Tue, 04 Nov 2014 08:06:45 +0000 |
| Subject: | Re: [RFC][Vote] Return Types | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78613@lists.php.net to get a copy of this message | ||
Le 04/11/2014 03:01, Levi Morrison a écrit :
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 usingstatic,selforparentas a type (it is possible for an argument). Something like:
class Singleton {
public function getInstance ( $x, $y): static { … }
}
Maybe I miss it in the discussion?
Thoughts?
Regards.
--
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/