3 ms·
There's a great rule of thumb coined by Andrew Gerrand: "The greater the distance between a name's declaration and its uses, the longer the name should be." [1]
by table-delete 9y ago
There's a great rule of thumb coined by Andrew Gerrand: "The greater the distance between a name's declaration and its uses, the longer the name should be." [1]
There's no reason to use any more than a single character for a loop variable. Who cares how old the convention is?
[1] https://talks.golang.org/2014/names.slide https://talks.golang.org/2014/names.slide