News for hackers. Stuff that matters.
Re:Inheritance versus Composition by indigo945 on Thursday May 09, 2019 @08:23AM (#19867583)
But entities really are not objects, because they neither send nor receive messages, and because they have no associated data (and therefore no encapsulation). In fact, the component-system relationship encourages you to break encapsulation.
Re:Inheritance versus Composition by seanmcdirmid on Thursday May 09, 2019 @09:18AM (#19867980)
OO is just programming with objects, regardless of how you coordinate them. Encapsulation is a multi dimensional thing, ECS just favors one form of encapsulation over another.