Are there legitimate uses for JavaScript's "with" statement?
- by Shog9
Alan Storm's comments in response to my answer regarding the with statement got me thinking. I've seldom found a reason to use this particular language feature, and had never given much thought to how it might cause trouble. Now, I'm curious as to how I might make effective use of with, while avoiding its pitfalls...
So my question is, where have you found the with statement useful?