Yes, reconsidering old decision is healthy, but you need provide some data/good reason to explain what has changed. By example, I'm curious about the number of occurrences of forEachOrdered in the wild, given that fold left (a kind of reduce) will be even less used than a forEachOrdered (a kind of forEach).
Rémi On August 14, 2017 2:58:18 AM GMT+02:00, Tagir Valeev <amae...@gmail.com> wrote: >Hello, Remi! > >Yes, I know. But times change and old decisions could be reconsidered. >After all, forEachOrdered was included and its semantics is essentially >the >same as in foldLeft with respect to parallel streams. > >With best regards, >Tagir Valeev. > >14 авг. 2017 г. 2:45 AM пользователь "Remi Forax" <fo...@univ-mlv.fr> >написал: > >> Hi Tagir, >> foldLeft (and foldRight) were intentionally not included in the >Stream API >> because as you know, their semantics is too strong to be useful for >> parallel streams. >> >> regards, >> Rémi >> >> ----- Mail original ----- >> > De: "Tagir Valeev" <amae...@gmail.com> >> > À: "core-libs-dev" <core-libs-dev@openjdk.java.net> >> > Envoyé: Dimanche 13 Août 2017 15:27:36 >> > Objet: RFR: JDK-8133680 add Stream.foldLeft() terminal operation >> >> > Please review the preliminary implementation for Stream foldLeft >and >> > foldRight operations: >> > >> > http://cr.openjdk.java.net/~tvaleev/webrev/8133680/r1/ >> > >> > This implementation has no tests yet. Before writing them I'd like >to >> > be sure that this enhancement could be accepted in general (or >> > probably foldLeft is accepted and foldRight is not?) Could anybody >> > sponsor it when it will be complete? >> > >> > Thank you in advance! >> > >> > Tagir Valeev. >> -- Sent from my Android device with K-9 Mail. Please excuse my brevity.