Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35906 invoked by uid 1010); 21 Feb 2008 14:17:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35891 invoked from network); 21 Feb 2008 14:17:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2008 14:17:31 -0000 X-Host-Fingerprint: 24.247.219.180 24-247-219-180.dhcp.cdwr.mi.charter.com Received: from [24.247.219.180] ([24.247.219.180:1853] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/97-21621-AF78DB74 for ; Thu, 21 Feb 2008 09:17:31 -0500 Message-ID: <5D.97.21621.AF78DB74@pb1.pair.com> To: internals@lists.php.net Date: Sun, 10 Feb 2008 09:17:49 -0500 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 References: <47BD207C.2080905@chiaraquartet.net> In-Reply-To: <47BD207C.2080905@chiaraquartet.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 24.247.219.180 Subject: Re: Trait aliasing syntax suggestions From: auroraeosrose@gmail.com (Elizabeth M Smith) [snip...] > > class A > { > trait foo; > } > > class B > { > trait foo {unset bing, bar as bing}; > trait bar; > } > ?> > [snip...] As long as we're discussing syntax - I rather like class A { attach foo; } class B { attach foo {hide bing, bar as bing}; attach bar; } but that's just my opinion into the "how to do the syntax" discussion I do like the "foo as bar" style aliasing, it will really make sense as namespaces follow the same convention, but I think hide is more appropriate than unset As for attach keyword, well it's short and descriptive, you are attaching new functionality to the class. I think that reusing trait both as the way to put the trait in the class and to declare the trait will confuse people. My $0.02 Thanks, Elizabeth Smith