Is the with keyword that bad in javascript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/61552/are-there-legitimate-uses-for-javascripts-with-statement">Are there legitimate uses for JavaScript&#39;s &ldquo;with&rdquo; statement?</a>  </p>
</blockquote>



<p>in "JavaScript the Good Parts", <code>with</code> is deemed to be a bad part of javascript, but look at this snippet:</p>

<pre><code>var foo={foof:function(){console.log(this)}}
var fuu={fuuf:function(){console.log(this)}}
with(foo){
     console.log(this);
 with(fuu){
     console.log(this);
     foof();
     fuuf();
 }
}
</code></pre>

<p>Is <code>with</code> really that bad a practice? Can <code>with</code> provide fun or an advantage sometimes, who can give a example?</p>
