Re: [RFC] Mixed Typehint
| From: | Andreas Hennings | Date: | Tue, 19 Dec 2017 11:47:22 +0000 |
| Subject: | Re: [RFC] Mixed Typehint | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101382@lists.php.net to get a copy of this message | ||
On 19 December 2017 at 08:06, Fleshgrinder <php@fleshgrinder.com> wrote:
> What is really needed are
scalar,
> number, union types, intersection
> types, and all that together with generics.
Do we have ongoing discussions or RFCs for those already?
I know we have one for generics, which seems somehow stuck,
https://wiki.php.net/rfc/generics
What would "scalar" mean exactly? string+int+float?
I would sometimes like a string+int, for "everything that can be an array key".