Showing posts with label with-statement. Show all posts
Showing posts with label with-statement. Show all posts

Monday, June 11, 2012

Are there legitimate uses for JavaScript"s "with' statement?


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...