The benefit of traits vs. classes is that I can add *functions* to existing objects without needing to modify a monolithic definition. The benefit of ECS vs. structs is that I can add *data* to existing objects without needing to modify a monolithic definition.
-
-
And for ECS, it’s a dynamic way of extending records. It’s hacky in the same way dynamic typing is. Basically just means every object becomes a Map<TypeId, Type>. But you could conceptually do the extensible stuff statically with enough language support.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD