Re: For JDK 9, annotating terminal operations?
Remi Forax
forax at univ-mlv.fr
Tue Oct 8 08:05:02 PDT 2013
If it doesn't return a stream, it's a terminal op :)
Sent from my Phone
----- Reply message -----
From: "Paul Benedict" <pbenedict at apache.org>
To: "lambda-dev at openjdk.java.net" <lambda-dev at openjdk.java.net>
Subject: For JDK 9, annotating terminal operations?
Date: Tue, Oct 8, 2013 16:56
I think some people today are not knowing the difference between the
terminal and non-terminal operations. Correct me if wrong, but I believe
the terminal operations are collectively referred to as "reduce".
In any event, if terminal methods had a @Terminal annotation, then
developers and source-code analysis tools would know clearly when the true
work kicks-in.
Any thoughts?
--
Cheers,
Paul
More information about the lambda-dev
mailing list