News for hackers. Stuff that matters.
Re:Humans should think of sizeof() as a function, says Linus... by krylon on Saturday May 30, 2015 @07:44AM (#9629842)
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.
Re:Humans should think of sizeof() as a function, says Linus... by mcguire on Saturday May 30, 2015 @11:24AM (#9630439)
Does it generally do this in expressions, based on operator precedence, or is it limited to the outer parentheses on selected statements?
Re:Humans should think of sizeof() as a function, says Linus... by krylon on Saturday May 30, 2015 @11:39AM (#9630497)
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.