News for hackers. Stuff that matters.
Re:Benefits of named return values in Go by mioelnir on Friday June 30, 2017 @02:39AM (#14668967)
I very, very rarely use named return values. My usual go-to problem is when one of the return values is an `error` that I want to set inside `recover()`.
Re:Benefits of named return values in Go by frou_dh on Friday June 30, 2017 @05:25AM (#14669524)
Surprised to find this not mentioned in the article and buried in comments. It's the first thing that comes to my mind as not merely a benefit, but an essential role played by the named returns.