Re: Something|null return type declaration
| From: | Andrea Faulds | Date: | Thu, 03 Dec 2015 15:57:29 +0000 |
| Subject: | Re: Something|null return type declaration | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89578@lists.php.net to get a copy of this message | ||
Hi Tom,
Tom Worster wrote:
Not being a regular on this list, I want to ask if there is history of discussion of a "something or nul" return type declaration for PHP 7.Yes. In fact there are currently two RFCs proposing different approaches for this, if you look at the wiki: - http://wiki.php.net/rfc/nullable_types - http://wiki.php.net/rfc/union_types
If this is already argued to death, or even just a bit, I'd like to read the RFC(s) and discussion. Grateful for pointers.If you search the archives of this mailing list (e.g. with marc.info, though there are other, probably better, websites) you can look at the discussions for these RFCs. Hope this is helpful. -- Andrea Faulds http://ajf.me/