|
|
|
|
|
by Cthulhu_
2116 days ago
|
|
Weirdly enough, Go seems to actually promote short / single letter variables, depending on context: "The basic rule: the further from its declaration that a name is used, the more descriptive the name must be. For a method receiver, one or two letters is sufficient. Common variables such as loop indices and readers can be a single letter (i, r). More unusual things and global variables need more descriptive names." https://github.com/golang/go/wiki/CodeReviewComments#variabl... |
|