3 ms·
I write C++ all the time and I still cannot convince many developers to use unique_ptr over new. It isn't that hard to write code that doesn't leak but if you b
by bluGill 2y ago
I write C++ all the time and I still cannot convince many developers to use unique_ptr over new. It isn't that hard to write code that doesn't leak but if you bypass the language features it cannot help you.
for that matter though I've seen rust programmers put everything in unsafe.
- on_the_train 2y agoThere's static analysis which can effectively force these things. C++ problems are self-inflicted
- bluGill 2y agoThere is but we have code predating c++11 that isn't worth rewriting. So the static analisys is off. We do use lots of static analisys but that one is too hard to fix all the old code that we have decades of proff works and isn't leaking (much?)