Discrete semantics of lambda expressions

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Mon May 2 13:11:53 PDT 2016


On 02.05.2016 19:31, Adam D. Ruppe wrote:
> On Monday, 2 May 2016 at 15:52:34 UTC, Xinok wrote:
>> I'm proposing that we add a warning to the compiler for this
>> particular case. If the programmer intended to return a lambda, then
>> rewrite the expression as one of:
>
> I agree, forcing people to rewrite it is a good idea.

I don't think { ... } as shorthand for (){ ... } is necessary or 
particularly useful in the first place.


More information about the Digitalmars-d mailing list