Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are you specifically referring to method function receiver type annotations? Those are often left shorthand but shouldn't exist out of the type definition file anyway eh?


I’m referring to this guideline:

> Variable names in Go should be short rather than long. This is especially true for local variables with limited scope. Prefer c to lineCount. Prefer i to sliceIndex.

https://github.com/golang/go/wiki/CodeReviewComments#variabl...


One of those is not like the other...

lineCount is literally perfect meanwhile sliceIndex could be anything.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: