Closed metagn closed 6 years ago
I couldn't find documentation about finally: without try:, and since the forum post linked was in 2013 i thought it was an outdated feature in contrast to defer: which is explained using try/finally in the manual
@hlaaftana I added 2 scope guard entries: scope(success) and scope(failure), do you know the nim equivalents?
EDIT: /cc @hlaaftana
I couldn't find documentation about finally: without try:
indeed, it gives:
Warning: use 'defer'; standalone 'finally' is deprecated [Deprecated]
I don't know if there are any
excellent changes, thanks! I'm curious, I seem to be able to use
finally:
and in place ofdefer:
; not sure what difference it would make