Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32761 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4256 invoked by uid 1010); 14 Oct 2007 16:25:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4240 invoked from network); 14 Oct 2007 16:25:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2007 16:25:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:35334] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/74-02105-4F242174 for ; Sun, 14 Oct 2007 12:25:24 -0400 Received: from trainburn-lm-corp-yahoo-com.local (c-24-6-228-50.hsd1.ca.comcast.net [24.6.228.50]) (authenticated bits=0) by mail.lerdorf.com (8.14.1/8.14.1/Debian-10) with ESMTP id l9EGPK12004425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 14 Oct 2007 09:25:21 -0700 Message-ID: <471242E8.9010402@lerdorf.com> Date: Sun, 14 Oct 2007 09:25:12 -0700 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Hans Moog CC: internals@lists.php.net References: <7C37FF3A0196094F95430BA95952032211B7C5@s1.mkj.lan> <7C37FF3A0196094F95430BA95952032211B7C7@s1.mkj.lan> <72129346.20071014092922@marcus-boerger.de> <47120B07.3070801@cschneid.com> <47122C7E.3060301@lerdorf.com> <7C37FF3A0196094F95430BA95952032211B7CE@s1.mkj.lan> In-Reply-To: <7C37FF3A0196094F95430BA95952032211B7CE@s1.mkj.lan> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/4540/Sat Oct 13 18:43:55 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: AW: AW: [PHP-DEV] Method overloading by method signature From: rasmus@lerdorf.com (Rasmus Lerdorf) 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