Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57309 invoked by uid 1010); 20 Apr 2004 20:55:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57234 invoked from network); 20 Apr 2004 20:55:22 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.118) by pb1.pair.com with SMTP; 20 Apr 2004 20:55:22 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id 9054C6D882; Tue, 20 Apr 2004 22:55:21 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id 80A956DB44; Tue, 20 Apr 2004 22:55:20 +0200 (CEST) Received: from cschneid.com (ultrafilter2-i [192.168.85.3]) by xaxa.search.ch (Postfix) with ESMTP id D033A6D882; Tue, 20 Apr 2004 22:55:19 +0200 (CEST) Message-ID: <40858E36.2070200@cschneid.com> Date: Tue, 20 Apr 2004 22:55:18 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: en-us, en, de-ch, de MIME-Version: 1.0 To: Sebastian Bergmann Cc: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on xaxa.search.ch X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: Multi-Method Dispatch in PHP 5.1? From: cschneid@cschneid.com (Christian Schneider) 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. 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. PINJ, - Chris