4 ms·
The syntax is pretty explicit in not inserting the ';' after some characters; eg. '.' (which is why you can go: blah.Go(). Go(). Go() Which is equ
by shadowmint 13y ago
The syntax is pretty explicit in not inserting the ';' after some characters; eg. '.' (which is why you can go:
blah.Go().
Go().
Go()
Which is equivalent to:
blah.Go().Go().Go()
I don't see why it would be significantly breaking to allow a } to similarly avoid the automatically inserted semicolon for if statements.
This wasn't a 'consequence'; this was a design decision.
- _ak 13y ago> This wasn't a 'consequence'; this was a design decision. A design decision with a sound reasoning: https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/XuMrWI0Q8uk https://groups.google.com/forum/?fromgroups=#!topic/golang-n...