logoalt Hacker News

ueckertoday at 12:31 PM1 replyview on HN

Renaming c. to .cpp may work with ancient c89 code, but not with anything remotely modern. But while the code then is technically C++, it is not better. I still prefer C for new projects to any other language, because I value short compilation time and reduced complexity. For me, this translates in higher productivity and more fun. With modern tooling, also most C issues are detected early.


Replies

Panzerschrektoday at 4:49 PM

Slightly tweaking C code to allow it working in C++ is still much easier compared to full rewrite in some other language.

show 1 reply