|
|
|
|
|
by autoreleasepool
3787 days ago
|
|
Yes, HN in general is anti-C++, a quick search for previous discussions proves this. For some inane reason, the language makes a lot of people upset and pouty. People love to hate it. To be honest, it's getting old. It's the same bitter sentiments over and over. I turn to reddit for substantive C++ discussions. EDIT: fwiw, I've found the actual cpp community to be a delight. |
|
People here have cited specific problems with C++ over and over. There are legitimate criticisms of the language that aren't "inane".
Personally, my biggest issue is that it's not memory safe, which leads to people making the same memory management mistakes we've been making since the '70s. At the same time, attackers have seen ways to weaponize use after free in ways that were not thought of when C++ was designed—and C++'s vtables make it much easier to do so. RAII and smart pointers have not proven to be an effective way to mitigate this, as a trip to any Web browser's bug tracker will demonstrate.
I do not believe this specific problem can be effectively fixed in C++, even with the ISO Core C++ lifetime checker, for reasons that I've elaborated on at length before.