News for hackers. Stuff that matters.
Re:Idiomatic Go (2016) by 38 on Sunday March 09, 2025 @06:38PM (#43314650)
> That's just "don't create a non-static method if you don't use 'this'" in other languages with classes

Go doesn't have static methods. Regardless if you name the receiver, you have to provide an instance of the type to all methods. Maybe you should check your own knowledge before criticizing others

Re:Idiomatic Go (2016) by dbattaglia on Monday March 10, 2025 @09:34AM (#43320436)
They said “in other languages with classes”. They are comparing to a common code review but/gripe in other languages besides Go.