On Monday, 8 September 2014 at 15:25:11 UTC, Timon Gehr wrote:
On 09/08/2014 10:51 AM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= <ola.fosheim.grostad+dl...@gmail.com>" wrote:

What kind of syntactical sugar do you feel is missing in D?

int square(int x)=>x*x;

Unfortunately we still can't just write:

alias square = x => x * x;

but you can do this:

alias id(alias A) = A;
alias square = id!(x => x * x);

Reply via email to