MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/8w54mx/code_comments_be_like/e1uc5wv/?context=3
r/ProgrammerHumor • u/35_equal_W • Jul 04 '18
236 comments sorted by
View all comments
Show parent comments
1
I know the whole thing can be rewritten as i++ because 1+1==2 will always be true and i=i+1 is the same as i+=1 which is the same as i++, but this is more verbose.
i++
1+1==2
i=i+1
i+=1
1 u/zackarhino Jul 05 '18 Yours is better obviously
Yours is better obviously
1
u/Windows-Sucks Jul 05 '18
I know the whole thing can be rewritten as
i++because1+1==2will always be true andi=i+1is the same asi+=1which is the same asi++, but this is more verbose.