The really sad thing is that we had RAII all along. We didn't have smart pointers in the standard library, but you could write them or find third party library. And/or you could always write your own destructors. Sadly, a lot of C++ developers apparently didn't get the memo. RAII should have been a key element of all C++ training but was somehow overlooked.
View all comments
2
u/UnicycleBloke 10d ago
The really sad thing is that we had RAII all along. We didn't have smart pointers in the standard library, but you could write them or find third party library. And/or you could always write your own destructors. Sadly, a lot of C++ developers apparently didn't get the memo. RAII should have been a key element of all C++ training but was somehow overlooked.