Hello Hans,

Friday, June 18, 2004, 4:41:08 PM, you wrote:

> Hi,

> Marcus Boerger wrote:
>> Last but not least we know already that a lot of people like to
>> be able to handle both instanceof or null with typehints. But at
>> the moment we have no solution that can go into PHP 5.0. However
>> i am quite sure we will address this for 5.1.

> I'm glad this issue will be re-evaluated.  I think the loss of null 
> option is disappointing since it precludes optional params (which was 
> really the only place I was using it), but I also understand the reasoning.

gooood :-)

> Here is a slightly related example from my code [....] -- and it
> would be nice if I could use optional paramters w/ typehints.

IMO thats the only valid point you brought up here. Another thing missing
is that in derived classes the typehints should be able to accept
superclasses like the following patch does:
http://marcus-boerger.de/php/ext/ze2/ze2-type-hint-classes-20040327.diff.txt
[This patch may be a little bit outdated though :-) ]

> Of course, namespaces are more important than anything ;)

hehe, could you live with packages?

regards
marcus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to