The rationale for uppercase abbreviations in Go symbol name derives from the english convention for writing acronyms using all uppercase letters. For example: NASA, ASCII, LOL, etc. That provides a visual clue the "word" is an acronym.
On Tue, Aug 25, 2020 at 10:07 AM Jamel Toms <jamelt...@gmail.com> wrote: > Is there a rationale for this? At face-value it seems purely arbitrary and > personal preference. > > It would be nice if it just stated that in the comments as opposed > positioning itself as if there's something inherently better about this > naming convention. > > On Wednesday, July 8, 2015 at 4:32:36 PM UTC-4 Tim K wrote: > >> You are correct, that is the recommendation: >> >> See "Initialisms" section here: >> https://code.google.com/p/go-wiki/wiki/CodeReviewComments >> >> And slide 6 here: >> http://talks.golang.org/2014/names.slide#6 >> >> >> >> On Wednesday, July 8, 2015 at 1:01:13 PM UTC-7, jonathan...@gmail.com >> wrote: >>> >>> I could have sworn I read that go convention is for uppercase >>> abbreviations as found in the stdlib like ServeHTTP and not ServeHttp but I >>> can not find a doc anywhere. Was I imagining this? >>> >> -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/ba980968-5445-44ef-924d-87f801e00cacn%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/ba980968-5445-44ef-924d-87f801e00cacn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD_JpV_EXOc-TQ3LJmdvrAwWOyckAQB6hW9wxSvwc-8NkQ%40mail.gmail.com.