PHP 5.4.0 released
Posted Mar 2, 2012 12:21 UTC (Fri) by
angdraug (subscriber, #7487)
In reply to:
PHP 5.4.0 released by oseemann
Parent article:
PHP 5.4.0 released
No, mixins were invented specifically to avoid multiple inheritance when reusing code from multiple classes. They only exist in languages with single inheritance. According to that Wikipedia article I linked to earlier, PHP traits are mixins, which is why I'm curious why they had to invent their own name for a well-known concept.
(
Log in to post comments)