Re: Re: Improving PHP's type system
| From: | Levi Morrison | Date: | Fri, 15 Apr 2016 15:18:40 +0000 |
| Subject: | Re: Re: Improving PHP's type system | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92334@lists.php.net to get a copy of this message | ||
> This is something that particularly concerns me about union types, in that
> they reduce type safety.
This is incorrect. Anyone using a union type now simply uses PHP's
dynamic type system. Going from no enforced type to restricting it to
N types does not in any circumstance reduce type safety.