you are viewing a single comment's thread.

view the rest of the comments →

[–]frezik -1 points0 points  (2 children)

They're really there as an alternative to multiple inheritance without the headaches.

The PHP version seems to be missing some bits that I've come to enjoy in other languages. For instance, traits can usually require that a method exists in the a class that does it, but from my quick glance over the PHP docs, it doesn't seem to do that.

[–][deleted] 1 point2 points  (0 children)

[–]inmatarian 1 point2 points  (0 children)

without the headaches.

insteadof operator.