Re: RFC: Traits for PHP
| From: | Lars Strojny | Date: | Wed, 20 Feb 2008 20:28:25 +0000 |
| Subject: | Re: RFC: Traits for PHP | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35662@lists.php.net to get a copy of this message | ||
Hi Geoffrey,
Am Mittwoch, den 20.02.2008, 20:14 +0000 schrieb Geoffrey Sneddon:
[...]
> Is there any reason why we cannot support multiple inheritance (which
> some other languages already do)? The only thing that needs to be
> clearly defined is sorting order. This avoids trying to create some
> entirely new functionality to do something where we can simply extend
> what we already do.
Did you read the academic paper about the purpose of traits? In short:
traits fix the common misconceptions of multiple inheritance. The most
common problem is risky and fragile hierarchies. Also traits do the
right thing[tm]: they allow compositions, not uncontrolable hotchpotch
architectures.
cu, Lars
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc