4 ms·
You are totally right. As an example, long if/else chains that check state can mean that you need another object, or another virtual function, or some other ni
by biocomputation 10y ago
You are totally right.
As an example, long if/else chains that check state can mean that you need another object, or another virtual function, or some other niblet of orchestration.
Likewise, I'm not really impressed by the anti-if campaign. At some point, abstractions cause the exact same problem they were designed to solve, and produce code that is difficult to reason about or change.