"with" should be deprecated with extreme prejudice

Sean Kelly sean at invisibleduck.org
Mon May 18 09:45:26 PDT 2009


Andrei Alexandrescu wrote:
> I think "with" is a very dangerous feature due to the way it hides 
> symbols. It essentially makes the feeblest attempt at modular reasoning 
> utterly impossible:
> 
> int x, y;
> with (whatever)
> {
>     y += x;
>     ++x;
> }

"with" is a useless feature and a waste of a keyword.  I'd love to get 
rid of it.



More information about the Digitalmars-d mailing list