Re: [RFC] Patch for Union and Intersection Types
| From: | Tom Worster | Date: | Tue, 26 Apr 2016 16:58:02 +0000 |
| Subject: | Re: [RFC] Patch for Union and Intersection Types | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92800@lists.php.net to get a copy of this message | ||
On 4/26/16 10:58 AM, Bob Weinand wrote:
Yeah, I'd like to not allow ?Foo in any case if union types pass. If they fail, ?Foo is fine for me.I am persuaded that using the HHVM grammar is best. I personally don't like but it makes sense. If the Union RFC would propose only the | grammar and both Nullable RFCs would propose only ? grammar then the decision process could be relatively clear: 1 Union 2 Nullable hints and return 3 Nullable return 4 None of the above Tom