For JDK 9, annotating terminal operations?
Brian Goetz
brian.goetz at oracle.com
Tue Oct 8 08:03:55 PDT 2013
The documentation clearly says "This is a terminal operation" (with a
link to the definition of terminal operation) for every terminal
operation in java.util.stream.
Of course, some people don't read the doc. But would an annotation help
those people? I don't think so.
On 10/8/2013 10:56 AM, Paul Benedict wrote:
> 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?
>
More information about the lambda-dev
mailing list