easier work with collections: default Stream.toList?

Zhong Yu zhong.j.yu at gmail.com
Wed Oct 2 09:32:56 PDT 2013


I still don't understand in specific terms why Stream.toList() could
hinder any future developments. It might be an eyesore, but what's the
big deal otherwise?

Zhong Yu

On Wed, Oct 2, 2013 at 11:20 AM, Brian Goetz <brian.goetz at oracle.com> wrote:
>>> By the same reasoning, List should not be used in any public API ever:)
>>
>> Ermm... only if you take that reasoning to an unreasonable level :-)
>
> Right.  It was a design goal of Streams to be "Collections 1.5" -- not the replacement for the collections, but a bridge to where we could see Collections 2 from there.  Hence the reluctance to wrap the historical anchor around our neck.
>
>
>


More information about the lambda-dev mailing list