Hi friends :)
I am hoping to make a lifecycle manager for a C library, as I have done before in C++. Is there a clean way to get code to run on scope exit, even if an exception is thrown? I have discovered the
try ... finally
pattern, but I would prefer to not have to create an additional scope to accomplish what I am trying to do.