Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
krylon
10y ago
0 comments
Share
In Go, however, go fmt will remove the unnecessary parentheses. I was very annoyed at first, when I saw this, but I got used to it.
0 comments
default
newest
oldest
mcguire
10y ago
Does it generally do this in expressions, based on operator precedence, or is it limited to the outer parentheses on selected statements?
krylon
OP
10y ago
I am not an expert, but I think it only removes the outermost ones. The major task of the tools is
indentation
and placement of curly braces.
j
/
k
navigate · click thread line to collapse