Marcus Boerger wrote:
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 :-) ]


Ok, well yes my message sorta morphed as I realized that the central problem was my subclasses with fewer params in method sig than the parent class. But the optional typehinted params are very useful & glad that'll be revisited.


Of course, namespaces are more important than anything ;)


hehe, could you live with packages?

Probably! yeah :) -- what's the difference? Are namespaces more like what's implement in C#/.NET (i.e. no necessary correspondence between namespace and actual assembly used to provide them) and packages something more like Java? Forgive my ignorance & if there's already a thread on this, just say so :)


Thanks,
Hans

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



Reply via email to