Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Avoid Else, Return Early (2013). Parent comment
Basically
Allocate resource
try
guard clause (early return)
logic
finally
deallocate
Basically, the try-finally clause guarantees that the finally clause is run when there is an early return.
There are no comments on this comment yet.
Basically
Allocate resource
try
guard clause (early return)
logic
finally
deallocate
Basically, the try-finally clause guarantees that the finally clause is run when there is an early return.