C++0x now with lambda and closure
downs
default_357-line at yahoo.de
Mon Mar 31 16:19:30 PDT 2008
Jacob Carlborg wrote:
> guslay wrote:
>> For those keeping track...
>>
>> http://herbsutter.spaces.live.com/
>>
>> Crazy syntax, at least it looks better than boost.
>>
>
> I like the C# syntax:
> listOfFoo.Where(x => x.size > 10);
>
> even better if you could have this syntax (but perhaps it won't work):
> listOfFoo.Where((x) x.size > 10);
>
> I would be nice to have that in D
Well, _kinda_ with tools :)
listOfFoo /select/ ex!("x -> x.size > 10");
:)
--downs
More information about the Digitalmars-d-announce
mailing list