"with" should be deprecated with extreme prejudice

bearophile bearophileHUGS at lycos.com
Mon May 18 10:32:39 PDT 2009


Ary Borenszweig:

> Because of that, C# added the following syntax:
> 
> new S {
>    x = _x,
>    y = _y,
> };

Better to add named arguments to methods/functions and templates, it's a more general solution.

Bye,
bearophile



More information about the Digitalmars-d mailing list