Re: [RFC] Permit trailing whitespace in numeric strings
| From: | Robert Hickman | Date: | Tue, 09 Apr 2019 13:27:28 +0000 |
| Subject: | Re: [RFC] Permit trailing whitespace in numeric strings | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105174@lists.php.net to get a copy of this message | ||
> Why? Wouldn't it be nice to align the behaviour of implicit and explicit
> casting, so that (int) "abc" throws a TypeError?
>
I agree with this. It would be odd if they behaved differently.