Re: [RFC] Return type-hint
| From: | Ferenc Kovacs | Date: | Thu, 29 Jul 2010 07:58:07 +0000 |
| Subject: | Re: [RFC] Return type-hint | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49163@lists.php.net to get a copy of this message | ||
>> Hi, I would love this feature.
>> But I have some concerns.
>> AFAIK you can declare classes with the name int ,scalar, etc. so
>> hinting anything else than class names can be ambiguous.
>> Or we have to set these keywords as reserved, so nobody could declare
>> classes with such names.
>
> Weren't they already made reserved with the parameter type hinting patch?
>
As I said:
> Maybe this was resolved with the last scalar type hinting patch, which
> got merged to the trunk, I don't know.
Tyrael