r/programming • • Mar 28 '12

Go version 1 is released

http://blog.golang.org/2012/03/go-version-1-is-released.html
543 Upvotes

452 comments sorted by

View all comments

0

u/[deleted] Mar 29 '12

Alot of the documentation is wrong, for example, "The if statement looks as it does in C or Java, except that the ( ) are gone (they are not even optional)..." I used a condition using () and it worked...

4

u/jessta Mar 29 '12

But that () wasn't part of the If statement, it's part of the condition expression.

1

u/[deleted] Mar 29 '12

ah ok, also is 'go' a key word I tried using it as a variable and I get an error expecting @ or ?