I\'m doing a bit of coding, where I have to write this sort of code:
if( array[i]==false ) array[i]=true;
I wonder if it should be re-w
This isn't just premature optimization, this is micro-optimization, which is an irrelevant distraction.
Assuming your array is of boolean type then your comparison is unnecessary, which is the only relevant observation.