Readability

Howard Lovatt howard.lovatt at gmail.com
Wed Dec 22 15:59:17 PST 2010


Hi All,

I think that the proposed lambdas with extension methods are far
superior to the C# alternative. In particular you can override the
extension methods, e.g. an ArrayList might implement filter etc. quite
differently than LinkedList. The builder alternative can also be
optimised for a particular List type, but only for the List types you
know about when you write the builder. The proposed Java approach is
much more flexible, if I write my own List type I can override filter
etc. if needed. Thus the proposed Java solution, which is a variation
on Traits, fits into the OO paradigm much better than the alternative
approaches (you would expect in an OO language to be able to write a
List and that your list is treated the same as any other List).


Have a great Christmas,

  -- Howard.


More information about the lambda-dev mailing list