Collection stream() and parallel()

Paul Benedict pbenedict at apache.org
Mon Dec 10 13:49:26 PST 2012


Brian, can I post my suggestion here or must I subscribe to
lambda-libs-spec-observers at openjdk.java.net?

PS: The problem with ALL observers list is that they are totally
worthless, in my opinion, because they all warn "EG members are under
no obligation to follow the traffic on this list". If I post there, it
sounds like no one will read them to reply -- so I feel I am writing
into a black hole.

Paul

On Mon, Dec 10, 2012 at 3:41 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
> This is under discussion in the EG now.
>
>
> On 12/10/2012 4:09 PM, Paul Benedict wrote:
>>
>> I was surprised to see both these methods return Streams with such
>> wildly different method names. After seeing stream(), I was not
>> expecting another method to return streams -- it seemed like the
>> former was the "de facto" way of getting one.
>>
>> Would you consider perhaps renaming them? Something akin to
>> serialStream() and parallelStream()? Or streamSerially() and
>> streamParallely()?
>>
>> Paul
>>
>


More information about the lambda-dev mailing list