Re: Re: ClassHints and NULL
| From: | Hans Lellelid | Date: | Fri, 18 Jun 2004 19:15:47 +0000 |
| Subject: | Re: Re: ClassHints and NULL | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10602@lists.php.net to get a copy of this message | ||
Marcus Boerger wrote:
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.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 :-) ]
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, HansOf course, namespaces are more important than anything ;)hehe, could you live with packages?