Hacker News new | ask | show | jobs
by teeray 1096 days 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.

1 comments

Can you elaborate point 2, please?I am wondering how is that related to the issue of pointer and value semantics.