RE: [PHP-DEV] Typehints (was Re: [PHP-DEV] Annoucing PHP 5.4 Alpha 1)
| From: | Jonathan Bond-Caron | Date: | Wed, 11 Aug 2010 12:12:19 +0000 |
| Subject: | RE: [PHP-DEV] Typehints (was Re: [PHP-DEV] Annoucing PHP 5.4 Alpha 1) | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49325@lists.php.net to get a copy of this message | ||
On Tue Aug 10 07:42 PM, Josh Davis wrote:
> Derick's point was about consistency. The approach described in his
> mail is consistent with current syntax and mechanism(s). Current
> typehints do not apply any kind of conversion, so treating scalar
> hints the same way is consistent with the current mechanism.
>
It's only consistent in the function declarations but *completely*
inconsistent with how the rest of the language works.