I would not call this snippet particularly "cursed". There is no "aktshchually this happens, therefore this is activated" hidden magic going on. The try-catch-finally construct is doing exactly what it is designed and documented to do: finally block is executed regardless of the outcome within try. The purpose of finally block is to fire regardless of exceptionality in control flow.
Surprising at first? Maybe. Cursed? Wouldn't say so. It is merely unconventional use of the construct.
taneq|3 months ago
friendzis|3 months ago
Surprising at first? Maybe. Cursed? Wouldn't say so. It is merely unconventional use of the construct.
chii|3 months ago
unknown|3 months ago
[deleted]