That's a fair point. I was originally in there just to fix the missing
'as'. I will defer to the group consensus.
On Tuesday, October 1, 2013 2:13:11 PM UTC-5, andrey mirtchovski wrote:

i think the spaces are intentional. a lot of thought has gone into
indenting the reslicing operator in Go: gofmt will remove spaces
around ":" if both sides are constants ([0:3]) or simple function
calls ([0:len(a)]), but to aid clarity, gofmt will insert spaces
around ":" if there are any arithmetic operations involved. but even
though gofmt will remove spaces if it saw this in real code, it
doesn't touch comments.

You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupgolang-dev @
postedOct 1, '13 at 6:42p
activeOct 1, '13 at 7:22p

2 users in discussion

Rh: 2 posts Andrey mirtchovski: 1 post



site design / logo © 2022 Grokbase