Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Issue 184068: code review 184068: Remove -oldprinter flag from gofmt; all code is (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 2 months ago by gri
Modified:
15 years, 2 months ago
Reviewers:
cw
CC:
rsc, r, golang-dev
Visibility:
Public.

Description

Remove -oldprinter flag from gofmt; all code is now printed using the semicolon-free style. Removed NoSemis flag and mechanism dealing with optional semicolons from go/printer. Updated all go/printer output files using the semi-colon free style. Changes have no formatting impact on checked in go code under src and misc.

Patch Set 1 #

Patch Set 2 : code review 184068: Remove -oldprinter flag from gofmt; all code is #

Patch Set 3 : code review 184068: Remove -oldprinter flag from gofmt; all code is #

Unified diffs Side-by-side diffs Delta from patch set Stats (+656 lines, -699 lines) Patch
M src/cmd/godoc/godoc.go View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gofmt/gofmt.go View 2 chunks +1 line, -5 lines 0 comments Download
M src/pkg/go/printer/nodes.go View 24 chunks +21 lines, -57 lines 0 comments Download
M src/pkg/go/printer/printer.go View 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/go/printer/testdata/comments.golden View 6 chunks +30 lines, -30 lines 0 comments Download
M src/pkg/go/printer/testdata/comments.x View 2 chunks +10 lines, -10 lines 0 comments Download
M src/pkg/go/printer/testdata/declarations.golden View 11 chunks +180 lines, -186 lines 0 comments Download
M src/pkg/go/printer/testdata/expressions.golden View 6 chunks +184 lines, -182 lines 0 comments Download
M src/pkg/go/printer/testdata/expressions.raw View 6 chunks +184 lines, -182 lines 0 comments Download
M src/pkg/go/printer/testdata/linebreaks.golden View 3 chunks +26 lines, -26 lines 0 comments Download
M src/pkg/go/printer/testdata/statements.golden View 5 chunks +19 lines, -19 lines 0 comments Download

Messages

Total messages: 8
gri
Hello rsc, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 2 months ago (2010-01-11 19:25:11 UTC) #1
rsc
LGTM
15 years, 2 months ago (2010-01-11 19:39:25 UTC) #2
r2
LGTM we should still to be able to parse the old style a little longer. ...
15 years, 2 months ago (2010-01-11 20:32:20 UTC) #3
gri
Yes. Parsing is completely decoupled and (unless there are changes to the AST) we can ...
15 years, 2 months ago (2010-01-11 20:37:51 UTC) #4
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=723a86cf003d *** Remove -oldprinter flag from gofmt; all code is now printed ...
15 years, 2 months ago (2010-01-11 20:58:15 UTC) #5
cw
Please don't. It's not entirely clear to me thew old vs new vs whatever syntax ...
15 years, 2 months ago (2010-01-11 21:27:40 UTC) #6
rsc
> It's not entirely clear to me thew old vs new vs whatever syntax issues ...
15 years, 2 months ago (2010-01-11 21:32:15 UTC) #7
gri
15 years, 2 months ago (2010-01-11 21:33:17 UTC) #8
The semicolon-free printing style has been the default for some time now;
except for gofmt, the compilers now accept only the new syntax (gofmt will
continue to accept the old syntax as input for a little longer so that old
programs can be converted). Supporting both styles is adding extra
complexity to gofmt which is not needed anymore.

- Robert



On Mon, Jan 11, 2010 at 1:27 PM, <cw@f00f.org> wrote:

> Please don't.
>
> It's not entirely clear to me thew old vs new vs whatever syntax issues
> are all resolved.
>
> Can't we leave this about for a while longer until there is more of a
> consensus there?
>
>
> http://codereview.appspot.com/184068
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b