RE: [VOTE][RFC] Coercive Scalar Type Hints
| From: | Zeev Suraski | Date: | Wed, 11 Mar 2015 21:31:03 +0000 |
| Subject: | RE: [VOTE][RFC] Coercive Scalar Type Hints | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84581@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Zeev Suraski [mailto:zeev@zend.com]
> Sent: Wednesday, March 11, 2015 11:28 PM
> To: 'Theodore Brown'
> Cc: 'internals@lists.php.net'
> Subject: RE: [VOTE][RFC] Coercive Scalar Type Hints
>
> Yes, with strict STH you'd know that more things fail during static
analysis
> time, because, well, it fails a lot more cases. What's the remedy?
Typically it
> would be forcing the type using an explicit cast, which is worse across
the
> board than a dynamic cast.
^^^ that should read "than a coercive type hint", sorry.
Zeev