3 ms·
I'd argue not breaking old code has precedence over zero cost abstraction.
by NL807 5y ago
I'd argue not breaking old code has precedence over zero cost abstraction.
- bregma 5y agoIt's not a contest. They're both fundamental requirements. Mom doesn't like one of them best.
- gpderetta 5y agoBut indeed, when the option is between maintaining backward compatibility or further reducing overhead, the C++ committee usually choses the former, at least on the library side. See for example the less then ideal unique_ptr constructor or the invalidation guarantees of the unordered containers.