Re:Benefits of named return values in Go
by Gonzih on Friday June 30, 2017 @05:35AM
(#14669553)
Yes, you are correct. Doing var return MyStruct {} at the beginning of the function would do exactly the same thing as naming return value.
[ Parent
| on HN ]
There are no comments on this comment yet.