stream() / parallelStream() methods

Tim Peierls tim at peierls.net
Sat Feb 9 10:22:42 PST 2013


On Sat, Feb 9, 2013 at 1:13 PM, Joe Bowbeer <joe.bowbeer at gmail.com> wrote:

> The separation of parallel() from stream() also presents more
> possibilities for the user, and therefore also raises questions. Where in
> the expression does parallel() belong? In the parallel string-compare
> example, I had a choice between boxed().parallel() or parallel().boxed().
> Which is "right"? Or maybe I should insert parallel() even later in the
> expression?
>

Yup, that's the sort of uncertainty that really slows me down. All those
choices to make, especially when the type system doesn't yield clues. I'd
rather give up on clean ways to express certain intricate (and uncommon?)
combinations than have to make choices like these.

--tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130209/92cb4ea2/attachment.html 


More information about the lambda-libs-spec-experts mailing list