Discussion Thread: DIP 1043--Shortened Method Syntax--Community Review Round 1

Timon Gehr timon.gehr at gmx.ch
Wed Feb 9 14:10:57 UTC 2022


On 09.02.22 14:46, Kagamin wrote:
> Another single valued method:
> ```
> static string getPipeName(int pid)
> {
>      return string.Format("{0}-{1}", _baseName, pid);
> }
> static string getPipeName(int pid) => string.Format("{0}-{1}", 
> _baseName, pid);
> ```
> 88 and 79 characters, 10% saving.

I don't think this is primarily about saving characters.


More information about the Digitalmars-d mailing list