D-Programming-Language/dmd — comment on commit 675898721c04d0bf155a85abf986eae99c37c0dc
File:  line 0
By baryluk:

Hmm, i have mixed feeling about this. Syntax isn't very Dish.

Also how is able compile know what this means:

void main() {
int a = 5;
auto x = a => a/2;
}

is x an bool x = true, or is x a delegate?

a -> a/2;

would be much better syntax (somehow borowed from Erlang).

Any way I do not really think it is needed, because simple lambdas already can be expressed very shortly:

I also doesn't understand how actually it work:

a => a+1;

is equivalent to

delegate (a) { return a+1; };

But this is illegal construction, because there is no type of a. (And I checked grammar it is needed, before 'Declarator' rule).

It may possibly mean, delegate (T)(a) { return a+1; }, but there is no such things as delegate templates in D.