logoalt Hacker News

lelanthrantoday at 10:14 AM1 replyview on HN

If someone needs more than C provides, why on earth would they choose C++?

No rational person is going to want to have to deal with 10x the number of foot guns.

Literally anything when moving from C is better than C++.


Replies

Panzerschrektoday at 10:50 AM

Switching to C++ is relatively easy in an existing codebase. It's in many cases as simple as renaming a file from .c to .cpp. But for writing something from scratch it's better to use Rust.

show 2 replies