Re: [RFC] Union Types v2
| From: | Côme Chilliet | Date: | Thu, 05 Sep 2019 09:39:58 +0000 |
| Subject: | Re: [RFC] Union Types v2 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106868@lists.php.net to get a copy of this message | ||
Le mercredi 4 septembre 2019, 10:26:09 CEST Nikita Popov a écrit :
> As an experiment, I'm submitting this RFC as a GitHub pull request, to
> evaluate whether this might be a better medium for RFC proposals in the
> future. It would be great if we could keep the discussion to the GitHub
> pull request for the purpose of this experiment (keep in mind that you can
> also create comments on specific lines in the proposal, not just the
> overall discussion thread!) Of course, you can also reply to this mail
> instead. The final vote will be held in the wiki as usual.
Huge "no" from me on using github for discussing RFCs.
Huge "yes" on the RFC content.
> * Only supports "false" as a pseudo-type, not "true".
I think it would make sense to support true as well as I’ve seen a lot of cases of functions
returning either an error string or TRUE on success.
So that would be string|true.
Côme