4 ms·
I started doing this a bit myself too, but soon found that I missed RAII too much. Having things clean themselves up when going out of scope is very convenient
by another2another 4y ago
I started doing this a bit myself too, but soon found that I missed RAII too much.
Having things clean themselves up when going out of scope is very convenient, and means that the early return code style that I favour is much easier to implement.