About a year ago, I wrote about Delphi: you should avoid the with
statement as it makes your code less future proof. Then I already tweeted I would follow up. Time to do it now (:
Besides my first post, these links inspired me most:
- Is Delphi “with” keyword a bad practice? – Stack Overflow.
- Why should I not use “with” in Delphi? – Stack Overflow.
- If With is Considered Harmful, What About Double With?.
- Movie #19 – Hate With a Passion.
-
“The with keyword. The most hideous, dangerous, blow-your-own-feet-off feature in the language.” by Verity Stob
Posts about the with statement usually cause a stir: people either like or dislike it with passion.
Starting with some history and examples, this posts lists a few DOs and DON’Ts when using the with statement, shows advantages and drawbacks, and shows you tools to eliminate with statements. Read the rest of this entry »