3 ms·
You should be using RAII for any resources that you need to automatically clean up, then any return statement will catch it. No need for exceptions.
by vvanders 10y ago
You should be using RAII for any resources that you need to automatically clean up, then any return statement will catch it. No need for exceptions.
- cyphar 10y agoRAII is not a feature of C. I was commenting on how gotos are not like exceptions, because gotos are actually useful and don't cause your program to make less sense as a result.