"with" should be deprecated with extreme prejudice

Denis Koroskin 2korden at gmail.com
Mon May 18 13:09:49 PDT 2009


On Mon, 18 May 2009 20:45:26 +0400, Sean Kelly <sean at invisibleduck.org> wrote:

> 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.

Same here. I don't remember myself using it ever.




More information about the Digitalmars-d mailing list