Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-09-01 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional > _Mailing list message from [Alan Snyder](mailto:javali...@cbfiddle.com) on > [core-libs-dev](mailto:core-libs-...@mail.openjdk.java.ne

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-17 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional I believe that the accompanying JBS issue (JDK-8272137) can be closed. Maybe a mention of how the discussion in this PR was resolved (wit

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-17 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional Ah ok, I see your point. In the case that you want to have something be only `Streamable`, you can create an interface like this (fixed missing

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-16 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional The List and Collection interface was almost directly taken from java.util (apart from the small feature interfaces, that I extracted from the

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-16 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional Also, sorry for my Millennial lack of knowledge of older communication methods, but if I wanted to reply to a specific thread in a mailing lis

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-16 Thread CC007
for now, but I agree with @amaembo that if this conversation is indeed mirrored there, then it shouldn't be a problem to discuss the proposal here, along with the proposed changes. I actually worked out a usecase (See: https://github.com/CC007/InterfaceSegregationDemo), where I partially reimagined the C

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-14 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 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 se

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-14 Thread CC007
On Sun, 15 Aug 2021 01:07:10 GMT, Brian Goetz wrote: > I understand what you are proposing. I do not believe Streamable carries its > weight. That argument seems subjective. Could you elaborate on that in an objective manner? - PR: https://git.openjdk.java.net/jdk/pull/5050

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-14 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional Changed the title, since it seemed to cause confusion. - PR: https://git.openjdk.java.net/jdk/pull/5050

Re: RFR: 8272137: Make Collection and Optional classes streamable

2021-08-14 Thread CC007
On Sat, 14 Aug 2021 15:13:39 GMT, Brian Goetz wrote: > I object to this change. These issues were explored in the JSR 335 EG and it > was agreed that this abstraction did not carry its weight. In any case, it is > premature to bring a PR for a significant API change that has not been >

Re: RFR: 8272137: Make Iterable classes streamable

2021-08-14 Thread CC007
On Sat, 14 Aug 2021 00:53:06 GMT, liach wrote: > Aren't all iterable implementations effectively streamable if they properly > implement `spliterator`? And the spliterator implementation can always be > sequential or parallel, dependent on how you feed it into `StreamSupport`. Yes indeed,

Re: RFR: 8272137: Make Iterable classes streamable

2021-08-14 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional The name of this pull request is a bit wrong, but it had to be the same as the JBS name. The interfaces don't make the Iterable have

Re: RFR: 8272137: Make Iterable classes streamable

2021-08-13 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional I couldn't think of any, but if there are more places where these interfaces could be used, please tell me, so I can add them. ---

Re: RFR: 8272137: Make Iterable classes streamable

2021-08-13 Thread CC007
On Mon, 9 Aug 2021 12:28:23 GMT, CC007 wrote: > create Streamable and ParallelStreamable interface and use them in Collection > and Optional Something seemed to have gone wrong with the jcheck - PR: https://git.openjdk.java.net/jdk/pull/5050

RFR: 8272137: Make Iterable classes streamable

2021-08-13 Thread CC007
create Streamable and ParallelStreamable interface and use them in Collection and Optional - Commit messages: - 8272137: no CR - 8272137: create Streamable and ParallelStreamable interface and use in Collection and Optional Changes: