Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35713 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40652 invoked by uid 1010); 21 Feb 2008 23:32:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40637 invoked from network); 21 Feb 2008 23:32:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2008 23:32:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=dante@lorenso.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dante@lorenso.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lorenso.com from 67.18.161.90 cause and error) X-PHP-List-Original-Sender: dante@lorenso.com X-Host-Fingerprint: 67.18.161.90 mail.larkspark.com Linux 2.6 Received: from [67.18.161.90] ([67.18.161.90:55916] helo=mail.larkspark.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/7B-64513-B1A0EB74 for ; Thu, 21 Feb 2008 18:32:44 -0500 Received: from 99-147-139-38.lightspeed.allntx.sbcglobal.net ([99.147.139.38] helo=[192.168.1.67]) by planet.larkspark.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JSKu9-0004oE-9d; Thu, 21 Feb 2008 17:32:41 -0600 Message-ID: <47BE0A09.6060702@lorenso.com> Date: Thu, 21 Feb 2008 17:32:25 -0600 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Internals Mailing List CC: php@stefan-marr.de References: <001c01c87264$3c01b4e0$b4051ea0$@de> <698DE66518E7CA45812BD18E807866CE014A8D9D@us-ex1.zend.net> <47BE0664.8060304@stefan-marr.de> In-Reply-To: <47BE0664.8060304@stefan-marr.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Traits for PHP ... Why can't every Class be a Trait? From: dante@lorenso.com ("D. Dante Lorenso") All, I can imagine a case where you would want to box common functionality into a trait and be able to use that trait as a class also. Will we end up with a lot of classes like this?: class SomeClass { use SomeTrait; } What's wrong with making all 'Class'es be 'Trait's and the only thing which makes a Trait a Trait is when you use it as such? class MyClass { trait SomeClass; } In other words, why mustn't a trait be instantiable? Why can't every Class be a Trait? -- Dante