Re:A Farewell to Go
by Graziano_M on Wednesday August 09, 2017 @09:49PM
(#14975617)
Also his one example:
> For example placing an opening curly bracket on a new line causes the compiler to emit a syntax error.
That's actually part of the syntax, not the style. The compiler adds an implicit semicolon at the end of every line, and if there is one before the block of a switch, if, for, etc, then it looks like it's missing (and the next line's curly braces is just a new block.
> For example placing an opening curly bracket on a new line causes the compiler to emit a syntax error.
That's actually part of the syntax, not the style. The compiler adds an implicit semicolon at the end of every line, and if there is one before the block of a switch, if, for, etc, then it looks like it's missing (and the next line's curly braces is just a new block.