title: for (const i) rather than for (var i)
body: <p>Although the intelligent code completion doesn't seem to get it (in Flash Builder at least), the compiler seems that it does allow it and it's far more bug-protective to define a <strong><em>for</em></strong> iterator variable as a constant.</p>
  
  <pre><code>        for (const i:int = 0; i &lt; 100; ++i) {
              i = 5; // this breaks the loop's logic, but is caught by the compiler
          }
  </code></pre>