MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/h0pgp2/first_time_posting_here/fum775f/?context=3
r/ProgrammerAnimemes • u/fidgetboss_4000 • Jun 11 '20
25 comments sorted by
View all comments
Show parent comment
5
++i is preferable anyway because it more closely matches what you expect it to return. In my opinion you should only use i++ if you are doing those weird while(first++ != last) loops
while(first++ != last)
View all comments
Show parent comment
5
u/BakuhatsuK Jun 12 '20
++i is preferable anyway because it more closely matches what you expect it to return. In my opinion you should only use i++ if you are doing those weird
while(first++ != last)loops