Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6690 invoked by uid 1010); 18 Feb 2008 23:08:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6675 invoked from network); 18 Feb 2008 23:08:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2008 23:08:30 -0000 Authentication-Results: pb1.pair.com header.from=david.coallier@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=david.coallier@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.146.178 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: david.coallier@gmail.com X-Host-Fingerprint: 209.85.146.178 wa-out-1112.google.com Received: from [209.85.146.178] ([209.85.146.178:38943] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/C2-23568-DEF0AB74 for ; Mon, 18 Feb 2008 18:08:29 -0500 Received: by wa-out-1112.google.com with SMTP id l24so3046584waf.17 for ; Mon, 18 Feb 2008 15:08:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=I7F/e8H27/SPVm6C3ndL7xBbXJ/VuIbTfxgMx9S6kTA=; b=vNFrqet+/uL063gRsXAfIUL4PJ854Quh2pzd4M88x06bjBsBf/7GSBpdPfW3whkhacj5zc8Ia165xpPzZ6u3sbAnXMn7D1lBKS8ErsEsRnigVWu/VJqK3u57VwSN6JNxU1u4qTBN9n2eNqF5E0ROtpGiQSprTnC4td+xzNbWhhI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=pmj5JiyFuyzFJzVbBWSqmiMguT0pFTBpYjiHvlp4AKJDf+PyPz8xBGjCliMwuwva21qyIpMYU150jlCxyKpzmSldNGRyGiPO6aoT4Ai6Qucs64HZ0Ci60/iaW9p8ZHR9A0g8uvG6Un9cxyhPYZ6SMsx7NDowCsKqw8lh0M13NXA= Received: by 10.114.181.1 with SMTP id d1mr2559679waf.10.1203376106427; Mon, 18 Feb 2008 15:08:26 -0800 (PST) Received: by 10.114.13.11 with HTTP; Mon, 18 Feb 2008 15:08:26 -0800 (PST) Message-ID: Date: Mon, 18 Feb 2008 18:08:26 -0500 Sender: david.coallier@gmail.com To: ceo@l-i-e.com Cc: php@stefan-marr.de, internals@lists.php.net, "=?UTF-8?Q?Marcus_B=C3=B6rger?=" , "=?UTF-8?Q?Johannes_Schl=C3=BCter?=" , "Sebastian Bergmann" , "Alexandre Bergel" , "Falko Menge" , "Sara Golemon" , derick@php.net In-Reply-To: <58510.98.193.37.55.1203374232.squirrel@www.l-i-e.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <001c01c87264$3c01b4e0$b4051ea0$@de> <58510.98.193.37.55.1203374232.squirrel@www.l-i-e.com> X-Google-Sender-Auth: fef764f4812e3a0c Subject: Re: [PHP-DEV] RFC: Traits for PHP From: davidc@php.net ("David Coallier") On Feb 18, 2008 5:37 PM, Richard Lynch wrote: > On Mon, February 18, 2008 1:27 pm, php@stefan-marr.de wrote: > > > trait ezcReflectionReturnInfo { > > function getReturnType() { /*1*/ } > > function getReturnDescription() { /*2*/ } > > } > > > > class ezcReflectionMethod extends ReflectionMethod { > > use ezcReflectionReturnInfo; > > So it's just like an include for a re-used body of 'class' code. > > Hmmmm. > > Why not just allow 'include' here instead? Oh come on.. > > :-) > > Forgive me if I'm missing something subtle/complex here, but I wonder > if a Trait is really the "right answer"... > > Yes, the ability to add/exclude specific functions from two Traits is > "gone" with a simple 'include'... But so is the complexity of yet > another language construct... Please if you do not understand a concept, do not bash it or degrade it. Read the proposal, read about traits, read the thesis, read the patch, then if you still don't understand, give up, and if you do understand, you can complain. Thanks, > > -- > Some people have a "gift" link here. > Know what I want? > I want you to buy a CD from some indie artist. > http://cdbaby.com/from/lynch > Yeah, I get a buck. So? > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18