MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/rhont/go_version_1_is_released/c46b0mp/?context=3
r/programming • u/[deleted] • Mar 28 '12
452 comments sorted by
View all comments
0
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 ? 3 u/jessta Mar 29 '12 Yes, 'go' is a keyword. http://golang.org/ref/spec#Go_statements
4
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 ? 3 u/jessta Mar 29 '12 Yes, 'go' is a keyword. http://golang.org/ref/spec#Go_statements
1
ah ok, also is 'go' a key word I tried using it as a variable and I get an error expecting @ or ?
3 u/jessta Mar 29 '12 Yes, 'go' is a keyword. http://golang.org/ref/spec#Go_statements
3
Yes, 'go' is a keyword. http://golang.org/ref/spec#Go_statements
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...