> It’s a simple keyword, but it singlehandedly eliminates the need for any kind of RAII.
What if you want to put a resource object (which needs a cleanup on destruction) into a vector then give up ownership of the vector to someone?
I write code in go now after moving from C++ and God do I miss destructors. Saying that defer eliminates need for RAII triggers me so much
replies(1):