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.
Where have you found the
with statement useful?