Re: Scalar type hinting
| From: | Kris Craig | Date: | Tue, 28 Feb 2012 23:06:03 +0000 |
| Subject: | Re: Scalar type hinting | ||
| 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-58305@lists.php.net to get a copy of this message | ||
@Rick Though I'm not sure I'd agree with the overly broad "it is no longer
PHP" hyperbole, I think the basic point that it would be a significant
departure from the current model has merit. So ok, you've convinced me.
That example should not throw any errors. I'm officially no longer on the
fence with that. =)
--Kris
On Tue, Feb 28, 2012 at 3:03 PM, Rick WIdmer <vchkpw@developersdesk.com>wrote:
> On 2/28/2012 2:58 PM, Kris Craig wrote:
>
> strong int $a = "1"; // Converts to 1. May or may not throw an error (I'm
>> still on the fence).
>>
>
> It this is an error, it is no longer PHP.
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>