proposal: short => rewrite for function declarations
Q. Schroll
qs.il.paperinik at gmail.com
Mon Oct 19 19:49:24 UTC 2020
On Saturday, 10 October 2020 at 20:43:55 UTC, Steven
Schveighoffer wrote:
> I think if D is going to go this route, it needs to at least
> get rid of the ambiguity of => {return expr;}, which is
> currently "return a delegate/function that returns expr".
Agreed. I've filed an enhancement request to make => { } illegal
in 2017: https://issues.dlang.org/show_bug.cgi?id=17951
It's a long-standing hurdle for newcomers and nobody really needs
double delegates of this form on such a regular basis that such a
hurdle for newcomers is justified.
More information about the Digitalmars-d
mailing list