[go-nuts] Re: Difference between cmd/compile/internal/syntax/parser.go and pkg/go/parser/parser.go

2021-03-28 Thread philne...@gmail.com
t; (possibly for performance reasons) and major re-architectures of its > implementation (like coupling it with other parts of cmd/compile). > > On Saturday, March 27, 2021 at 8:07:38 PM UTC-4 philne...@gmail.com wrote: > >> Hey folks, >> >> Why does Go reimplement the

[go-nuts] Difference between cmd/compile/internal/syntax/parser.go and pkg/go/parser/parser.go

2021-03-27 Thread philne...@gmail.com
Hey folks, Why does Go reimplement the parser in pkg/go/parser on top of the one in cmd/compile/internal? Why have two packages with somewhat duplicate code? My guess is that it's easier to control what is public-public (available to authors of Go programs) vs public within the compiler by