Re:No engineer has ever sued because of constructive post-in...
by somebodythere on Thursday February 06, 2020 @11:35PM
(#22263247)
Real programmers would write bulletsDodged++;
Re:No engineer has ever sued because of constructive post-in...
by reificator on Thursday February 06, 2020 @11:52PM
(#22263326)
Re:No engineer has ever sued because of constructive post-in...
by bagacrap on Friday February 07, 2020 @12:05AM
(#22263386)
our style guide dictates ++bulletsDodged;
Re:No engineer has ever sued because of constructive post-in...
by ErikAugust on Friday February 07, 2020 @12:47AM
(#22263527)
Well, bulletsDodged++ and ++bulletsDodged mean different things in most languages. It ain't just a matter of style. :)
Re:No engineer has ever sued because of constructive post-in...
by fhars on Friday February 07, 2020 @03:32AM
(#22264172)
Like C++ gives you the current value of C and then increments it for some future use.
Re:No engineer has ever sued because of constructive post-in...
by reificator on Friday February 07, 2020 @02:28AM
(#22263905)
But preferring one over the other is.
Re:No engineer has ever sued because of constructive post-in...
by philpem on Friday February 07, 2020 @03:58AM
(#22264277)
Thing is, that's not valid Python - but the OP's version is ;-)
bulletsDodged += 1