Re: [go-nuts] Naming conventions in go?

2023-03-04 Thread Kurtis Rader
On Sat, Mar 4, 2023 at 5:49 PM Lenny wrote: > 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

[go-nuts] Re: Naming conventions in go?

2023-03-04 Thread peterGo
Lenny,' Go Code Review Comments Variable Names https://github.com/golang/go/wiki/CodeReviewComments#variable-names Google Style Guides Go Style Variable names https://google.github.io/styleguide/go/decisions#variable-names What's in a name? https://talks.golang.org/2014/names.slide Names

[go-nuts] Naming conventions in go?

2023-03-04 Thread Lenny
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 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] Re: alignment of stack-allocated variables?

2023-03-04 Thread TheDiveO
Keith, thank you very much for your feedback, it is highly appreciated! With this in mind, it's time for lies, more lies, and statistics, benchmarking the three different implementations below: func (r *Reader) Uint32() uint32 { if r.err != nil { return 0 } var s struct { _ [0]uint32 b [4]byte