Y
Hacker News
new
|
ask
|
show
|
jobs
by
frou_dh
4571 days ago
That usage with
recover
would be to be able to set return parameters that might otherwise be returned as their zero values, correct?
1 comments
pkulak
4566 days ago
Exactly. You can't return from the outer function in a defer, but you do have access to named return values. It's a bit of a kludge.
link