[Lazarus] 'with' is evil, isn't it?

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Aug 3 16:11:15 CEST 2011


Michael Van Canneyt schrieb:

> Frankly, I don't understand the discussion.
> I use 'with' all the time because it increases readability and reduces 
> typing.
> I don't want to be punished with heaps of warnings simply because I use 
> a language feature. Yes, I am aware that there are risks involved.
> 
> If you don't like 'with', then don't use it, end of story.

Everybody can do whatever he likes, in his own code, that never is used 
or read by other people. I.e. your last statement should read:

If you want your code be used, read and understood by other people, then 
don't use With.

DoDi





More information about the Lazarus mailing list