Yeah, I copied the go/token style there. However, thanks Nigel -- I didn't realize you could do "renaming imports", that's nice. -Ben
On Thu, Dec 14, 2017 at 4:35 AM, Jan Mercl <0xj...@gmail.com> wrote: > On Thu, Dec 14, 2017 at 6:27 AM Nigel Tao <nigel...@golang.org> wrote: > > > As per https://golang.org/doc/effective_go.html#mixed-caps ALL_CAPS > > names are unusual Go style. > > They are, but token names are often/traditionally all caps and > underscores: https://golang.org/pkg/go/token/#Token - in the old lex > style. And it has a good reason, to distinguish terminals in a grammar. > Even Go EBNF in the specification wants to make terminals stand out, even > though using a different style, like in int_lit: https://golang.org/ > ref/spec#Operands. > > > > -- > > -j > -- 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. For more options, visit https://groups.google.com/d/optout.