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

Single letter variables in Golang are to be used in small, local contexts. Akin to the throwaway i var in for loops. You only grep the struct methods, the same way no one greps 'this' or 'self'.

The code bases you've been reading, and even some of the native libraries, don't do it properly. Probably due to legacy reasons that wouldn't pass readability approvals nowadays.



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

Search: