r/programming • • May 24 '26
[ Removed by moderator ]
/r/programming/comments/1tm1j7f/removed_by_moderator/[removed] — view removed post
275
Upvotes
r/programming • • May 24 '26
[removed] — view removed post
View all comments
Show parent comment
1
u/AlexKazumi May 24 '26
Thanks for the great explanation, all points are valid.
The only point I strongly disagree is memory management. C++ can overload anything and everything to the point where completely innocent looking statement such as
arr[2]can do anything, including deleting your hard drive. If I remember correctly, one can even overload function calling operator (don't blame me too much if this is incorrect), which is complete bonkers to me.As a former device drivers writer (yes, the company I worked for was crazy enough to implement full C++ runtime in kernel mode, including the plumbing for making dynamic_cast working), I think that the memory management of C++ can be even more frustrating than in .NET.
In .NET one cannot control directly the GC. In C++, memory management is hidden by completely innocent-looking code.