3 ms·
That means you have probably not been programming C++. In C++, the cost of abstraction is a fundamental consideration, and while you can still ignore it - most
by einpoklum 7y ago
That means you have probably not been programming C++.
In C++, the cost of abstraction is a fundamental consideration, and while you can still ignore it - most resources about using C++, and gradually even the language itself, tend to nudge you towards avoiding abstraction costs in various ways (sometimes ugly, sometimes elegant). Plus, core language designers and compiler architects bend over backwards to reduce the cost of various abstractions to nothing or very little.
Plus, it happens that sometimes, you can use stronger abstractions to _reduce_ cost rather than increase it.