3 ms·
ECS are a special case of what the article is about, not the other way around. For instance, I independently came to the same conclusion than the author while
by shakow 3y ago
ECS are a special case of what the article is about, not the other way around.
For instance, I independently came to the same conclusion than the author while developing a library implementing polytomic tree structures.
It's much easier to handle blck-box NodeID's to the user (techincally u64, but don't tell them ;) and act on them with dedicated functions from the lib rather than clenching your teeth waiting for the inevitable segfault when one plays with pointers.
And it's also much easier to handle for the user: you have handles, functions creating them, functions using them, and the library can gracefully fail if you keep using them the wrong way.