RFR: 8272137: Make Collection and Optional classes streamable

Brian Goetz brian.goetz at oracle.com
Sun Aug 15 13:29:31 UTC 2021


For the third time: This discussion illustrates why the PR was 
premature; the design was not agreed upon first.  High-level design 
discussions (i.e., "is this a good design", "is this a good idea at 
all", "are we solving the right problem", "does it need to be solved in 
the JDK") should happen first on the discussion lists; if they happen on 
a PR like this, that's clear evidence that important steps have been 
skipped.



On 8/14/2021 10:48 PM, CC007 wrote:
> On Mon, 9 Aug 2021 12:28:23 GMT, CC007 <github.com+5381337+CC007 at openjdk.org> wrote:
>
>> create Streamable and ParallelStreamable interface and use them in Collection and Optional
> I read through [these posts](http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/2013-June/thread.html#1910) and while I did see good reasons for not moving stream to Iterable, I didn't see any mention of a separate Streamable-like interface, so could you elaborate on that it "did not carry its weight"?
>
> -------------
>
> PR: https://git.openjdk.java.net/jdk/pull/5050



More information about the core-libs-dev mailing list