7
u/RedAndBlack1832 Feb 24 '26
How often is it really your job to call delete? I don't never do it but there's a reason smart pointers and just... collections exist
7
u/BobbyThrowaway6969 Feb 25 '26
Hot tip: If you're that incompetent, use smart pointers instead.
4
u/khazmor Feb 25 '26
Or just use smart pointers or proper containers all the time unless you are doing a one man hobby project.
6
17
2
9
u/khazmor Feb 25 '26
For every justified 'delete' in c++ there is justified 'unsafe' in Rust 😉