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

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Feb 5 20:15:33 UTC 2022


On Saturday, 5 February 2022 at 14:10:51 UTC, Paul Backus wrote:
> D already supports this shortened syntax for anonymous 
> functions:
>
>     (int x) { return x + 1; }
>     (int x) => x + 1
>
> So, allowing it for named functions too is a logical extension 
> of a language feature that already exists.

Hardly, I would read arrow as a math-like lambda by convention.



More information about the Digitalmars-d mailing list