title: Why can't we define a variable inside a while loop?
body: <p>We can do:</p>
  
  <pre><code>using (Stream s ..)
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>for (int i ...)
  </code></pre>
  
  <p>Why can't we as well do something like:</p>
  
  <pre><code>while ((int i = NextNum()) &gt; 0) {..}
  </code></pre>
  
  <p>I find it very useful and sensible.</p>