3 ms·
There is absolutely no reason not to use C++ in modern software development. C++ gives you deterministic object lifetimes without the overhead of manual manage
by bitwize 13y ago
There is absolutely no reason not to use C++ in modern software development.
C++ gives you deterministic object lifetimes without the overhead of manual management through the RAII pattern and smart pointers. It gives you std::string, which is as easy to use, if not easier, than char*. It gives you parameterized types and real value semantics for user-defined types. There are even template versions of strcpy and friends which pass implicit length parameters to strcpy_s and friends, which prevent a whole class of buffer overflow bugs which have been the bane of C programmers since the language came into existence.
With all the added safety and convenience that C++ gives you over C, it is literally insane to use C where C++ could be used.
- papaf 13y agoThere is absolutely no reason not to use C++ in modern software development. Its nightmarishly complicated and gives you 1000 ways to blow your foot off, and maybe one or two to get the job done properly. After about 18 years of C++ development I still go for C sometimes. C is a lovely language that is much easier to learn. I cannot believe anyone would cheerlead for C++. Its a necessary evil.