I believe setting objects to Nothing is dangerous because it can cause null reference exceptions... This is important to be aware of more than anything else. I see a major possibility in someone deciding to set things to nothing, then deciding to handle the exceptions that arise by putting an empty try/catch combination... This is a lazy and inefficient solution (I think you'll agree there).
So all of it loops back to good programming practice, and I believe it is good practice to not have null references as much as possible (I group it with "goto").
Thank you for noticing that I'm obsessiveI've always believed I am, but I don't hear it often enough to confirm it (and I sleep a lot, so people think I'm lazy, which contradicts the obsessive paradigm).
Now I just have to wait for someone to notice that I'm neurotic![]()




I've always believed I am, but I don't hear it often enough to confirm it (and I sleep a lot, so people think I'm lazy, which contradicts the obsessive paradigm).
Reply With Quote