O'Reilly logo
  • Ervin Varga thinks this is interesting:

Example 19-26. C++ Examples of Rewriting Code More Clearly with a Non-Null Loop Body

RecordType record = recordArray.Read( index );
index++;
while ( record != recordArray.EmptyRecord() ) {
   record = recordArray.Read( index );
   index++;
}

From

Cover of Code Complete, Second Edition

Note

This is a very unfortunate rewrite of the example with an empty loop body. A better option is to literally leverage the classical do-while construction.