On 2013/10/01 19:13:12, aam 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.
I'm happy to remove the reformatting from the comments - the primary
goal was to add the missing word.



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

Follow ups

Related Discussions

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

2 users in discussion

R: 3 posts Robert Hencke: 2 posts



site design / logo © 2022 Grokbase