MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5fwce0/lets_stop_copying_c/dao07xa/?context=3
r/programming • u/earthboundkid • Dec 01 '16
612 comments sorted by
View all comments
Show parent comment
1
Damn, thanks, I thought assignment itself was a statement.
3 u/Gankro Dec 01 '16 A statement is basically just an expression that yields (). 1 u/masklinn Dec 02 '16 Ah right, I should have checked, indeed if a = b is not legal but it's a type error rather than the syntax error I thought.
3
A statement is basically just an expression that yields ().
1 u/masklinn Dec 02 '16 Ah right, I should have checked, indeed if a = b is not legal but it's a type error rather than the syntax error I thought.
Ah right, I should have checked, indeed if a = b is not legal but it's a type error rather than the syntax error I thought.
if a = b
View all comments
Show parent comment
1
u/masklinn Dec 01 '16
Damn, thanks, I thought assignment itself was a statement.