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

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Feb 5 21:17:23 UTC 2022


On Saturday, 5 February 2022 at 20:47:02 UTC, forkit wrote:
> auto multiplyBy10 = (int a) => a * 10; // already exists.
> auto multiplyBy10(int x) => x * 10; // proposed: Shortened 
> Method Syntax

I don't really care either way. It is in general a bad idea to 
have to syntaxes for the same thing.

It is certainly not logical though.

Lambdas conceptualize mathematical expressions.
Methods conceptualize messages.

Two different modelling ideas.



More information about the Digitalmars-d mailing list