Review: lamda expressions and bulk data operations on collections.

Paul Sandoz paul.sandoz at oracle.com
Mon Sep 2 06:03:28 PDT 2013


On Aug 31, 2013, at 8:25 AM, Ali Ebrahimi <ali.ebrahimi1781 at gmail.com> wrote:
> I see nobody using mangled (comparing&map) methods (even oracle guys) and
> this is the thing that I already have expected, just since we all lazy and
> this would hurt performance.

I suspect this is more to do with the examples being coded against an older version of tl/lambda as evidenced by the use of the 2-type-arg Collector:

$ javac *.java
CSVProcessor.java:191: error: wrong number of type arguments; required 3
    private static class Statistics implements Collector<String, Statistics> {

--

Andrey, there are still some differences between tl and lambda, mainly around closeable streams, which i think will require you to make some changes to the examples.

So i strongly recommend that you update the examples to compile and run against the tip of the lambda repo, then we can push/refine in that repo, and once we are happy with it review and push to tl.

I can push to lambda for you.

Paul.


More information about the lambda-dev mailing list