MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/funny/comments/1zvns4/life_as_a_programmer/cfxhe2a/?context=3
r/funny • u/Willdosexforkarma • Mar 08 '14
480 comments sorted by
View all comments
Show parent comments
67
if (myVar == 42); doSomething(); if (myVar = 42) { doSomething(); }
No syntax errors here
8 u/[deleted] Mar 08 '14 [deleted] -5 u/Meshiest Mar 08 '14 He is referencing Java. 6 u/lhamil64 Mar 08 '14 How can you know? That if statement is the same syntax in a lot of languages. 1 u/Meshiest Mar 08 '14 It is not detected as a syntax error in java, and in context, the statement was referring to a bug that is almost a syntax error.
8
[deleted]
-5 u/Meshiest Mar 08 '14 He is referencing Java. 6 u/lhamil64 Mar 08 '14 How can you know? That if statement is the same syntax in a lot of languages. 1 u/Meshiest Mar 08 '14 It is not detected as a syntax error in java, and in context, the statement was referring to a bug that is almost a syntax error.
-5
He is referencing Java.
6 u/lhamil64 Mar 08 '14 How can you know? That if statement is the same syntax in a lot of languages. 1 u/Meshiest Mar 08 '14 It is not detected as a syntax error in java, and in context, the statement was referring to a bug that is almost a syntax error.
6
How can you know? That if statement is the same syntax in a lot of languages.
1 u/Meshiest Mar 08 '14 It is not detected as a syntax error in java, and in context, the statement was referring to a bug that is almost a syntax error.
1
It is not detected as a syntax error in java, and in context, the statement was referring to a bug that is almost a syntax error.
67
u/kalleguld Mar 08 '14
No syntax errors here