[–] lucian1900 12y ago ↗ I don't think those are actually traits. They look more like mixins.If they were traits, there wouldn't be any point to also having interfaces, since traits are a strict superset of them. [–] haroldiedema 12y ago ↗ Built based on this: http://php.net/traitDepending on the language, I think they're pretty much the same thing; implementation of (read: copy) functionality from a stateless object.
[–] haroldiedema 12y ago ↗ Built based on this: http://php.net/traitDepending on the language, I think they're pretty much the same thing; implementation of (read: copy) functionality from a stateless object.
2 comments
[ 3.2 ms ] story [ 12.3 ms ] threadIf they were traits, there wouldn't be any point to also having interfaces, since traits are a strict superset of them.
Depending on the language, I think they're pretty much the same thing; implementation of (read: copy) functionality from a stateless object.