Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35665 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35164 invoked by uid 1010); 20 Feb 2008 20:53:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35149 invoked from network); 20 Feb 2008 20:53:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2008 20:53:44 -0000 Authentication-Results: pb1.pair.com header.from=foolistbar@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=foolistbar@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.134.186 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: foolistbar@googlemail.com X-Host-Fingerprint: 209.85.134.186 mu-out-0910.google.com Received: from [209.85.134.186] ([209.85.134.186:41613] helo=mu-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/B5-30965-6539CB74 for ; Wed, 20 Feb 2008 15:53:44 -0500 Received: by mu-out-0910.google.com with SMTP id w8so2229881mue.1 for ; Wed, 20 Feb 2008 12:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=YoH05HO+kFumKGgDK7iLOtIOksEgEF3zNAtDSDQcK3Q=; b=ksiIokNyR5g3YDbdHZC7pOPZUIw9IgIYVJW0E3iD78gcucUBvRJvRSlvQAZrl3hnKv6XIpcBpAhFfRbg3nr1F1iJoyDK4itW7OaSUallHTXh79y8DQ6CUghKGjgM8qV6iBOGOTetVeVjOBuBkOV17UOPQK+WwvNbYkaghL100dc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=fE45y9/FL5jVjSrfavzmERceZDMOs7wW69jY0w6BcOnkpfG792qIUQUHyKGGUGGpXOLCr/RL6Ae0OLk8bRoAsAGttBEu6fpJSUczGQywL45NtwnPw6lP4k2NN2TVouV8JW/x1JoQms/Pnye1Xb7d1JNsZr3uFB0FXddCaMdnO5o= Received: by 10.82.119.17 with SMTP id r17mr15458312buc.20.1203540819480; Wed, 20 Feb 2008 12:53:39 -0800 (PST) Received: from ?192.168.0.116? ( [86.151.228.75]) by mx.google.com with ESMTPS id c25sm14566ika.9.2008.02.20.12.53.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Feb 2008 12:53:38 -0800 (PST) Cc: Sebastian Bergmann , internals@lists.php.net Message-ID: <168009B0-344B-4DE1-836A-61A2C75AD4D6@googlemail.com> To: Lars Strojny In-Reply-To: <1203539305.29219.12.camel@localhost> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 20 Feb 2008 20:53:34 +0000 References: <001c01c87264$3c01b4e0$b4051ea0$@de> <1203461114.24580.45.camel@localhost> <1BBB7D29-95A9-4F9B-96DD-9AFEA37F4F71@googlemail.com> <1203539305.29219.12.camel@localhost> X-Mailer: Apple Mail (2.919.2) Subject: Re: [PHP-DEV] RFC: Traits for PHP From: foolistbar@googlemail.com (Geoffrey Sneddon) On 20 Feb 2008, at 20:28, Lars Strojny wrote: > Am Mittwoch, den 20.02.2008, 20:14 +0000 schrieb Geoffrey Sneddon: > [...] >> Is there any reason why we cannot support multiple inheritance (which >> some other languages already do)? The only thing that needs to be >> clearly defined is sorting order. This avoids trying to create some >> entirely new functionality to do something where we can simply extend >> what we already do. > > Did you read the academic paper about the purpose of traits? In short: > traits fix the common misconceptions of multiple inheritance. The most > common problem is risky and fragile hierarchies. Also traits do the > right thing[tm]: they allow compositions, not uncontrolable hotchpotch > architectures. Oh, wait. The previous email I was going to send in this thread was still a draft. That explains why that comment makes so little sense :) What I was going to say is that how is something like: Better than: Both are ambiguous if there is no documented conflict resolution: just because there's a proposal for traits doesn't mean you can't clearly define conflict resolution for multiple inheritance. I don't see either being intrinsically better than the other (and yes, I have read the papers about both). -- Geoffrey Sneddon