| ▲ | ryandrake an hour ago | |||||||
The paranoia about memory use in C++ should mostly be a thing of the past if you’re using smart pointers and sane patterns. In 2026 almost nobody should be calling new and delete and passing around raw pointers. | ||||||||
| ▲ | bluGill 41 minutes ago | parent | next [-] | |||||||
The reality though it many people are not using smart pointers. I have seen many people argue they don't like them because they want to see every place delete is called. (meanwhile of course they never notice all the places it should be called but isn't - but at least where it is they see it) | ||||||||
| ||||||||
| ▲ | AlotOfReading 42 minutes ago | parent | prev | next [-] | |||||||
And yet applications written in modern C++ are constantly discovering new memory safety issues. Sean Baxter wrote a whole manifesto talking about the shortcomings of the existing C++ model [0]. | ||||||||
| ||||||||
| ▲ | foldr 42 minutes ago | parent | prev [-] | |||||||
C++ still doesn't have a sane modern pattern for tagged unions. If you want to define a type to represent, say, a simple parse tree, then Rust makes that easy and obvious, whereas C++ offers you a hundred options, all of which suck. | ||||||||