Does anyone use 'with' statement?
janderson
askme at me.com
Sat Dec 8 22:09:02 PST 2007
serg kovrov wrote:
> Hi,
>
> Recently I have studied a (proprietary language) code. The language
> features 'with' statement in the same sense that D does. To understand
> what this code sample really do I had to remove all 'with's and
> fix/compile code many times before it start working as original.
>
> I don't know why never tried to use it in my own code before, but now I
> definitely will NOT use it ever. Even if it could save me some typing. I
> found 'with' far more evil than even 'goto' (which I don't use as well).
>
> -- serg.
I find the with statement useful in the same sense as auto for generic
programming. Name clashes can be a problem however there are always
trade offs in programming.
More information about the Digitalmars-d
mailing list