3 ms·
A bit hyperbolic calling code smell. They even mention they have their uses. I think the main point of this post is be careful with state explosion since each
by anfilt 4y ago
A bit hyperbolic calling code smell. They even mention they have their uses.
I think the main point of this post is be careful with state explosion since each flag grows the number of states exponentially and likely not all of then are legal or make sense.
The other point is grouping similar things in memory is good for performance. Less failed branch predictions from checking flags and better cache coherence.
Thats not as a click bite-y of a title though.
Although the above is sound advice.