News for hackers. Stuff that matters.
Re:Ask HN: What do you like/dislike about Golang? by ta3411 on Saturday November 26, 2022 @06:02PM (#33757814)
Love: - Ecosystem - Clean code - Single executable file

Dislike: - Pointers -- maybe I am still getting the hang of it. But I feel like pointers throw off a lot of beginner programmers. Would love some practical advice here

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.