Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9439 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61863 invoked by uid 1010); 21 Apr 2004 05:32:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61830 invoked from network); 21 Apr 2004 05:32:46 -0000 Received: from unknown (HELO spawn.leetspeak.org) (217.28.101.185) by pb1.pair.com with SMTP; 21 Apr 2004 05:32:46 -0000 Received: (qmail 12334 invoked from network); 21 Apr 2004 07:33:08 +0200 Received: from pd9547a68.dip.t-dialin.net (HELO leetspeak.org) (cm@217.84.122.104) by molly.zwonet.de with AES256-SHA encrypted SMTP; 21 Apr 2004 07:33:08 +0200 Message-ID: <40860773.6070406@leetspeak.org> Date: Wed, 21 Apr 2004 07:32:35 +0200 User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net References: <40858E36.2070200@cschneid.com> In-Reply-To: <40858E36.2070200@cschneid.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Multi-Method Dispatch in PHP 5.1? From: cm@leetspeak.org (Michael Walter) Christian Schneider wrote: > Sebastian Bergmann wrote: > >> Since we introduce class type hints in PHP 5.0 I think it would be a >> good thing [tm] to add multi-method dispatch in PHP 5.1. > > > Actually I think multi-method dispatching for PHP is A Bad Thing[tm]. > > Multi-method dispatching is necessary for statically checked, inflexible > languages without default parameters like Java. That's probably why Common Lisp, a language way more dynamic than PHP, provides you with a complete implementation of multiple dispatch. How exactly do you think are default parameters related to the issue, anyway? > PHP has other means of handling the most common problems this tries to solve and having two > methods of the same name is more confusing than helping IMHO. I assume you are you aware of what dynamic dispatch is trying to solve -- could you give an example of the 'other means' you are referring to? Cheers, Michael