3 ms·
Are you saying that this is different from mixins?
by aliswe 7y ago
Are you saying that this is different from mixins?
- spankalee 7y agoAbsolutely. Single inheritance is a degenerate form of mixin inheritance, where a subclass has a single, fixed superclass. Mixins simply fix single inheritance so a subclass's parent class is parameterized, and so concrete classes can be composed of several non-related mixins (which will often seem like multiple super-classes). ECS is a much different and bigger beast. It's a runtime composition pattern, and has almost basically to do with classes or objects. If you're only complaint about OOP is with single-inheritance, ECS is probably overkill.
- aliswe 7y agoI get that they are different "in action" (I also appreciate that ecs is implemented differently in various places), but conceptually, and for all intents and purposes, they should be regarded as quite similar if I'm not missing something? Is it the fact that (some implementations of?) mixins' members could collide and conflict with eachother? Your 3rd paragraph, did you miss "nothing" or perhaps another word?