You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
The effective go documentation doesn't really go into detail of whether or not I should try to name my variables as short as possible even though that is discouraged because of readability
peterGo
unread,
Mar 4, 2023, 8:53:58 PM3/4/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
The effective go documentation doesn't really go into detail of whether or not I should try to name my variables as short as possible even though that is discouraged because of readability
Lookup "bike shedding". Whether a very short variable name (e.g., "i") or very long name (e.g., "CurrentIndex") is appropriate depends on context. And that context is not just a particular language feature (e.g., a "range" loop in Go) but also the idioms employed by a particular project. Whether a particular name maximizes readability depends on the context -- not the number of characters in the name.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank