3 ms·
The way you avoid these are twofold: 1) Use the pointer receiver unless you have a really good reason to do otherwise. 2) Never, ever use named returns. Code
by teeray 3y ago
The way you avoid these are twofold:
1) Use the pointer receiver unless you have a really good reason to do otherwise.
2) Never, ever use named returns. Code can (and should) always be written to not use them.
- ssd532 3y agoCan you elaborate point 2, please?I am wondering how is that related to the issue of pointer and value semantics.