Re: Type hinting
| From: | Lukas Kahwe Smith | Date: | Sat, 22 May 2010 22:03:06 +0000 |
| Subject: | Re: Type hinting | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48399@lists.php.net to get a copy of this message | ||
On 23.05.2010, at 00:01, Hannes Magnusson wrote:
>> can we please just stop calling a something a "type hinting" system, which leads
>> to a catchable fatal error when the type does not strictly match? thats a very misleading euphemism.
>> its simply strict typing, it has nothing to do with hinting.
>>
>
> It definitely isn't strict either:
>
> $ php -r 'function errh() {} set_error_handler("errh",
> E_RECOVERABLE_ERROR); function bar(foo $x) {echo "hello world\n";}
> bar(1);'
> hello world
heh ... you are selling recoverable errors as anything but a solution to display something else than
a white screen?
regards,
Lukas Kahwe Smith
mls@pooteeweet.org