2 ms·
Zero-cost abstractions (you only pay for what you use) True in theory and essentially because C++ still remains mostly a superset of C, but unfortunately the m
by userbinator 9y ago
Zero-cost abstractions (you only pay for what you use)
True in theory and essentially because C++ still remains mostly a superset of C, but unfortunately the majority of C++ programmers I've met tend to overabstract and not realise it, making this claim not really true in practice.
High-level abstractions (OOP, lambdas, code-generation, etc. )
On the other hand, this is definitely true in practice.
- adgasf 9y ago> "C++ still remains mostly a superset of C" I think this notion is out-of-date. Have a look at this slide: https://youtu.be/_wzc7a3McOs?t=21m37s https://youtu.be/_wzc7a3McOs?t=21m37s It shows how C++ has evolved away from just "C with Classes". I agree that many C++ programmers over-abstract things.
- userbinator 9y agoIt shows how C++ has evolved away from just "C with Classes". I meant that C code, with few modifications, will basically work fine when compiled with a C++ compiler.
- slededit 9y agoThe way it works out in practice is people can develop at a high level, and then when its needed you can go back and refactor where necessary for perf. The average performance does become slower though.