4 ms·
My main take-away is that I'm still convinced that exceptions are the best invention since the chocolate milkshake and don’t even want to hear any other opinion
by kazinator 4y ago
My main take-away is that I'm still convinced that exceptions are the best invention since the chocolate milkshake and don’t even want to hear any other opinions.
- ncmncm 4y agoYes. The universal complaint, among exception complainers, is "I don't know if an exception might happen here." Easy: yes, it might; code accordingly. Cleanup code goes in destructors, where it gets well exercised on every run, exception or no. If you need a type to have the destructor for, make the type.