Re: [RFC] Union Types v2
| From: | Benjamin Morel | Date: | Thu, 26 Sep 2019 11:17:39 +0000 |
| Subject: | Re: [RFC] Union Types v2 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107333@lists.php.net to get a copy of this message | ||
> While certainly not the primary reason for why we should support union
types, the reason why I brought this proposal forward at this time
specifically, is that the lack of union types is a blocker for my pet
project of providing comprehensive type annotations for internal functions.
Supporting "false" is strictly necessary for this purpose, because it is
part of nearly all unions as far as internal functions are concerned.
How is that blocked by adding only "bool"?
— Benjamin