Why people use only one character to represent the current instance in method of struct? Example:
type Something struct {}
func (s *Something) doSomething() {}
I find more readable to use:
func (something *Something) doSomething() {}
Why people use only one character to represent the current instance in method of struct? Example:
type Something struct {}
func (s *Something) doSomething() {}
I find more readable to use:
func (something *Something) doSomething() {}
It's just good practice to follow rule that name should be short and concise (more info).
Also the point here is to avoid a way long names and generic names such as "me", "this" or "self" (more info).