Boost logo

Boost Users :

Subject: Re: [Boost-users] C# LINQ is cool. What about boost.qlang?
From: joel (joel.falcou_at_[hidden])
Date: 2009-10-13 11:48:26


Germán Diago wrote:
> Hello. I've been reading a bit about C#'s linq and it's very cool in my opinion.
> I would like to see something similar in c++, and boost is the ideal
> place I think.
> As I would like to see something similar, I started a prototype adapted to c++.
>
> For now I've been playing with the basics:
>
> -from, where and select operators.
> -it just can be used (for now) with from, where and select, all in a
> row, but this will change.
> -it should work with any range: containers, boost.range, etc.
> -it's just a c++0x version. It works great with lambdas (gcc svn has lambdas).
> -Can use any boost.fusion sequence as the object type to query.
> (Although the plan is to be able to give data providers to
> use to query any type of source.
>
> The prototype works in the following way. For example (C++0x) :
>
> vector<int> numbers = {1, 2, 3, 4, 8, 5, 9 , 24, 19, 15, 12 }
>
> auto query = from(numbers).where([](int i) { return i < 15 && i > 10}).
> select(fields::full_object);
>
I've proposed somethign very similar at boost'con 09 for a higher level
query library.
I'm all for it

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net