Where will this surface to users? gofmt? Won't most users hit problems in gc first? ...
13 years, 2 months ago
(2012-03-06 02:29:36 UTC)
#3
Where will this surface to users? gofmt? Won't most users hit problems in
gc first?
On Mon, Mar 5, 2012 at 6:25 PM, Russ Cox <rsc@golang.org> wrote:
> LGTM
>
> works great, thanks very much
>
On Mon, Mar 5, 2012 at 21:29, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Where will this ...
13 years, 2 months ago
(2012-03-06 02:34:53 UTC)
#4
On Mon, Mar 5, 2012 at 21:29, Brad Fitzpatrick <bradfitz@golang.org> wrote:
> Where will this surface to users? gofmt? Won't most users hit problems in gc
> first?
This turned many screens of syntax errors into 1 line for me when I
delete a single comma from my go/build/deps_test.go file.
I hit it in gofmt, but go test reads _test.go files with go/parser
before gc gets them too. I've been reporting these as I find them.
At some point - after Go 1, and once go/parser's errors are uniformly
as good or better than gc's - I think we'll want to run a quick syntax
check on the Go programs before invoking either compiler.
Russ
On Mon, Mar 5, 2012 at 6:34 PM, Russ Cox <rsc@golang.org> wrote: > On Mon, ...
13 years, 2 months ago
(2012-03-06 02:39:35 UTC)
#5
On Mon, Mar 5, 2012 at 6:34 PM, Russ Cox <rsc@golang.org> wrote:
> On Mon, Mar 5, 2012 at 21:29, Brad Fitzpatrick <bradfitz@golang.org>
> wrote:
> > Where will this surface to users? gofmt? Won't most users hit problems
> in gc
> > first?
>
> This turned many screens of syntax errors into 1 line for me when I
> delete a single comma from my go/build/deps_test.go file.
> I hit it in gofmt, but go test reads _test.go files with go/parser
> before gc gets them too.
ah!
> I've been reporting these as I find them.
> At some point - after Go 1, and once go/parser's errors are uniformly
> as good or better than gc's - I think we'll want to run a quick syntax
> check on the Go programs before invoking either compiler.
Cool.
Issue 5756045: code review 5756045: go/parser: better error sync. if commas are missing
(Closed)
Created 13 years, 2 months ago by gri
Modified 13 years, 2 months ago
Reviewers:
Base URL:
Comments: 0