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

The Go team’s recommendation (from Effective Go) is exactly what you’re suggesting. One letter variables should only be used in short functions, a couple lines away from where they’re created. The further you get from where a variable is created the longer and more descriptive its name should be. Some people just take it too far or don’t read the whole guide I guess.


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

Search: