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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php