proposal: short => rewrite for function declarations
Paul Backus
snarwin at gmail.com
Sat Oct 10 23:22:30 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".
IMO this is a good idea regardless. I've fallen into the `=> {
... }` pit myself multiple times when refactoring from short to
long delegate syntax, and I'm sure I'm not the only one.
More information about the Digitalmars-d
mailing list