3 ms·
Reference is among one the things I really want to be included in C. Does it break anything if it's introduced to the standard? On the other hand, I still pref
by syockit 7y ago
Reference is among one the things I really want to be included in C. Does it break anything if it's introduced to the standard?
On the other hand, I still prefer C to C++ mainly due to the compile time (an incremental compile in a typical large C project I deal with takes a second or so, while C++ takes 3-4 seconds). C++ doesn't have to be slow, as long as you use the needed features. But idiomatic C++ means you'd be using STL, class inheritance, virtuals, operator overloading, templates and constexpr and stuff, all of which contribute to longer compile times.
- mhh__ 7y agoI'd prefer longer compile times over runtime issues: Smart pointers are cheap, and easy to use now. C++ compile times are largely due to the absolutely ridiculous import system C++ forces you to use. Precompiled headers can eliminate a huge amount of C++ compilation time. The obvious solution is to avoid C++ when making new codebase, but that's easier said than done.