]> Cypherpunks repositories - gostls13.git/commit
- blank before opening { for multi-line composite literals (as preferred by r)
authorRobert Griesemer <gri@golang.org>
Sat, 7 Nov 2009 21:01:52 +0000 (13:01 -0800)
committerRobert Griesemer <gri@golang.org>
Sat, 7 Nov 2009 21:01:52 +0000 (13:01 -0800)
commit3317697df4ae2d0e97dc06fb08adad7fd7e90adf
treec5ec7f99d0d9891a304478940d0b165a0e88f14e
parent49d4e8cb8008f6508edfcd1b948b54e35fa33ede
- blank before opening { for multi-line composite literals (as preferred by r)
- blank padding around composite literal contents for a less dense look
  (most if not all composite literals were written in that style before gofmt
  ran through them)
- corresponding (internal) flag: compositeLitBlank

- don't print a semi after a one-statement statement list (as preferred by r)
- corresponding (internal flag): fewerSemis

- the number of changes in nodes.go is huge because of the removed semis;
  hg mail requires that I gofmt the file before

With both flags set to false, this CL causes no gofmt formatting change. We
can turn them on if we like it (and then remove the flags). Will submit with
flags disabled.

R=rsc, r
http://go/go-review/1025015
src/pkg/go/printer/nodes.go