A nice way to step into 2012

Jacob Carlborg doob at me.com
Wed Dec 28 08:41:05 PST 2011


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


More information about the Digitalmars-d mailing list