On Thu, Dec 14, 2017 at 1:44 AM, Ben Hoyt <benh...@gmail.com> wrote:
> I used the "dot" import for tokenizer so I can just use "if p.tok == COMMA"
> instead of "if p.tok == tokenizer.COMMA" everywhere.

As per https://golang.org/doc/effective_go.html#mixed-caps ALL_CAPS
names are unusual Go style. In
https://github.com/google/wuffs/blob/master/lang/check/check.go I say

import (
  a "github.com/google/wuffs/lang/ast"
  t "github.com/google/wuffs/lang/token"
)

so if you did something similar, it would be "if p.tok == t.Comma".

-- 
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.

Reply via email to