Re: [RFC] Scalar Type Hinting With Casts (re-opening)
| From: | Rowan Collins | Date: | Mon, 14 Jul 2014 16:44:28 +0000 |
| Subject: | Re: [RFC] Scalar Type Hinting With Casts (re-opening) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75486@lists.php.net to get a copy of this message | ||
Zeev Suraski wrote (on 14/07/2014):
I do believe that the vast majority of people would want '32 ' and "42\n" to silently convert to 32/42, and will generally not care much about '32abc' converting to 32 either for the sake of consistency.And passing 'hello' to a function type hinted as int? Will people really expect that to become a 0, with a mild warning they may not even have enabled?