Inferring lambda parameter types in an argument position

Rémi Forax forax at univ-mlv.fr
Sun Mar 6 07:21:03 PST 2011


On 03/05/2011 11:17 PM, Llewellyn Falco wrote:
> I'd also like to pipe in regarding the naming.
> Since we won't have extension methods, and therefor can't change the names
> of the methods easily, I would really like to suggest we use the mapping to
> SQL syntax. It's much easier to understand and consume.
>
> MyList<Y>  newList = list
>     .map( #{ x ->  new Y(x) } )
>     .filter( #{ y ->  y.IsFunny() } );
>
> MyList<Y>  newList = list
>     .select( #{ x ->  new Y(x) } )
>     .where( #{ y ->  y.IsFunny() } );
>
> select, where, groupby, orderby
>
> we are already familiar with the name and concept.
>
>
> Llewellyn Falco
>

C# has its own view of what a SQL select and where clause means.
Ruby, Python even Objective-C all use map, filter, reduce.

Rémi



More information about the lambda-dev mailing list