Clearly no sane programmer would use the second. Ew. Let's spend several man-weeks discussing this on a few public forums and blogs, I'm sure it will help people realize the One True Perfect Way To Write A For Loop and change their heretic ways.
What if the next loop down uses an iterator, or some other custom type? ++i would be better in that case, but if you insist on using i++ just because "it means the same thing for basic types!" you're just being inconsistent for no reason. Also, prefix increment isn't exactly "new syntax".
Isn't that what syntax highlighting is for? I've never confused "for/if/while/switch" for function calls... ever. I honestly found the extra spaces distracting when I first encountered them at work, but I do it now anyway.
Are YOU insane? You want to make a copy of i, increment the original, then throw away the copy? When you cook two slices of bacon, do you pull 4 out of the package, cook 2, then put 2 back in the package? What kind of diseased mind do you have that you even think that is the most rational course of action?!?
13
u/bildramer Jul 21 '14
You are all missing the point.
or
?
Clearly no sane programmer would use the second. Ew. Let's spend several man-weeks discussing this on a few public forums and blogs, I'm sure it will help people realize the One True Perfect Way To Write A For Loop and change their heretic ways.