On 2011-12-27 23:27, Timon Gehr wrote:
On 12/27/2011 05:25 AM, Andrei Alexandrescu wrote:
https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc



Andrei

Great! =)

What about making => syntax available to named functions as well?

class C{
private int x;
int getX() => x;
}


void main(){
int[] arr;
bool isOdd(int x) => x&1;
writeln(arr.filter!isOdd());
}


I wouldn't say no to that.

--
/Jacob Carlborg

Reply via email to