Re: AW: AW: [PHP-DEV] Method overloading by method signature
| From: | Rasmus Lerdorf | Date: | Sun, 14 Oct 2007 16:25:12 +0000 |
| Subject: | Re: AW: AW: [PHP-DEV] Method overloading by method signature | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32761@lists.php.net to get a copy of this message | ||
Hans Moog wrote:
> Kcachegrind doesn't show the function signature in the callgraph because the parameter
> signature is not part of the function signature. If the parameter siganture would be moved into the
> function signature, kcachegrind would adept and show it.
>
> Btw: You don't have to use it if you don't want to. But PHP5 didn't include type
> hints for no reason. The problem: Type hints don't make many sense right now.
> Like I already wrote in another comment. If you would use type hints you would understand the
> need of overloading type hinted methods.
Right, but I am usually profiling and debugging other peoples' code, not
my own, so that argument doesn't work.
There are plenty of strictly typed languages in the world, we don't need
another. The Web is inherently untyped in that browsers don't type
anything. We have to intelligently deal with untyped data all the time
and do the appropriate type juggling.
-Rasmus