Re:OOP Is Dead, Long Live OOP
by dvlsg on Thursday October 18, 2018 @04:23PM
(#18251794)
I think composition and mixins should be kept separate. In my mind (and maybe I have an incorrect view of it), mixins throw a bunch of new properties on the base object, whereas composition keeps the original object encapsulated in a single property. Would you consider the second type to be a mixin? I've never heard it described that way.
[ Parent
| on HN ]
There are no comments on this comment yet.