[Phpug] Traits in PHP, your opinions

David Coallier davidc at php.net
Tue Feb 19 16:00:50 GMT 2008


Hello all,

Yesterday a proposal has been made on the internals php list
(http://news.php.net/php.internals/35562) about the having "traits" in
PHP.

For those who are unfamiliar with "traits", it's basically a solution
around multiple inheritance for single inheritance languages as such
as PHP. It's basically a nice word for "code reuse". It already exists
in languages as such as Perl, Java, C# and now, proposed for php.

You can read the proposal here:
http://www.stefan-marr.de/artikel/rfc-traits-for-php.html and you can
see many examples to enlighten your questions, and for the most
adventurous of you, you can even read the thesis at the end (which I
recommend, quite good).

Thoughts ?

-- 
David,
Re-read what you are replying.


More information about the Phpug mailing list