News for hackers. Stuff that matters.
Re:Ask HN: What do you like/dislike about Golang? by abdusco on Saturday November 26, 2022 @06:42PM (#33758205)
> pointers

Stick with pass-by-value and non-pointer receivers. Use pointers only if you have to.

Re:Ask HN: What do you like/dislike about Golang? by cratermoon on Saturday November 26, 2022 @07:39PM (#33758712)
I worked with one team who deliberately chose pointer receivers for everything. Their reasoning? The compiler can't know if the receiver for the call you are making will be nil at run time, so it doesn't complain.

Yes, they literally chose to subject themselves to runtime panics to silence the compiler.