title: Is "for(;;)" faster than "while (true)"? If not, why do people use it?
body: <pre><code>for (;;) {
      //Something to be done repeatedly
  }
  </code></pre>
  
  <p>I have seen this sort of thing used a lot, but I think it is rather strange...
  Wouldn't it be much clearer to say <code>while(true)</code>, or something along those lines?</p>
  
  <p>I'm guessing that (as is the reason for many-a-programmer to resort to cryptic code) this is a tiny margin faster?</p>
  
  <p>Why, and is it <em>really</em> worth it? If so, why not just define it this way:</p>
  
  <pre><code>#define while(true) for(;;)
  </code></pre>
  
  <h3>See also: <a href="https://stackoverflow.com/questions/24848359/which-is-faster-while1-or-while2">Which is faster: while(1) or while(2)?</a></h3>