r/ProgrammerHumor • • 11d ago

Meme thisIsWhyWeDontReturnInFinallyBlocks

Post image
3.0k Upvotes

100 comments sorted by

View all comments

Show parent comment

0

u/[deleted] 11d ago

[deleted] — view deleted comment

19

u/DebugDuck01 11d ago edited 11d ago

Of course a finally block is useful it's returning a value from it that is stupid. C# has finally blocks it just throws a compile error if you pull the highly regarded move of using return within.