Y
Hacker News
new
|
ask
|
show
|
jobs
by
__david__
4817 days ago
Ah! Thanks! I had seen panic/recover but hadn't caught "defer". That will make my code much better.
2 comments
pkulak
4816 days ago
"defer" is 50% of the reason I use Go. Open some resource, then defer close it the next line and move on. No more giant, nested try/finally blocks.
link
yepguy
4816 days ago
In addition to defer, Go actually
does
have goto.
link