[Lazarus] 'with' is evil, isn't it?
Marcos Douglas
md at delfire.net
Tue Aug 2 17:26:25 CEST 2011
2011/8/2 ik <idokan at gmail.com>:
> That's also bad. Because I can use for example "with" the following way:
>
> with area, canvas do
> begin
> Rectangle(0,0, with, height);
> end;
>
> If you'll have "this" or "self" or $_ (in perl :)) it still contain the same
> problem. I prefer explicit code then implicit code. It's more readable and
> less error prone.
>
> I think that "with" like "goto" need to be enabled by special parameter and
> not allowed by default.
Yep... I forgot that sintaxe option because I never used.
Forget what I said.
Marcos Douglas
More information about the Lazarus
mailing list