3 ms·
> No one is having problems in C/++ because of this. No one is having problems with this in C because C doesn't have exceptions. No one is having problems wit
by randombit 16y ago
> No one is having problems in C/++ because of this.
No one is having problems with this in C because C doesn't have exceptions.
No one is having problems with this in C++ because C++ supports RAII via destructors which are guaranteed to run on stack unwind.
- wvenable 16y agoYou can do RAII in PHP via destructors as well. That's how I "get around" this problem.