Re: RFC: Traits for PHP

From: Date: Tue, 19 Feb 2008 12:19:49 +0000
Subject: Re: RFC: Traits for PHP
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-35590@lists.php.net to get a copy of this message
On Feb 18, 2008 8:27 PM, <php@stefan-marr.de> wrote: > Hi, > > during last six months I've studied a language construct called Traits. > It is a construct to allow fine-grained code reuse and in my opinon > this would be a nice feature for PHP, which I did like to propose here. > The following RFC deals with the questions what Traits are, how they are > used, why they are usefull and how they do look like in PHP. > A patch implementing this new language construct is available, too. > > Thank you for your attention and I'm looking forward to hear your comments > :) > > Kind Regards > Stefan I know this is in the bike-shed department, but the following syntax doesn't look very PHP to me: use B { !bigTalk, talk => bigTalk } Could we separate exclusions from aliases somehow? -- troels

« previous php.internals (#35590) next »