logoalt Hacker News

logicchainstoday at 1:11 PM0 repliesview on HN

It's not the same thing at all because you have to remember to use the context manager, while in C++ the user doesn't need to write any extra code to use the destructor, it just happens automatically.