Re: [RFC] Scalar Type Hinting With Casts (re-opening)
| From: | Andrea Faulds | Date: | Tue, 15 Jul 2014 21:10:59 +0000 |
| Subject: | Re: [RFC] Scalar Type Hinting With Casts (re-opening) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75567@lists.php.net to get a copy of this message | ||
On 15 Jul 2014, at 22:08, Andrea Faulds <ajf@ajf.me> wrote:
> Also, sure, the scalar type hint behaviour is inconsistent with zpp in some cases (booleans,
> 12.5, “12a”), but it’s inconsistent with most of it, and you can describe what they do with a
> single sentence (“Scalar type hints will raise E_RECOVERABLE_ERROR if information is lost when
> casting.”), since they’re far more straightforward and obvious than zpp’s rules are.
Er, I meant “but it’s *consistent* with most of it” :)
--
Andrea Faulds
http://ajf.me/