infinite streams
Brian Goetz
brian.goetz at oracle.com
Fri Mar 15 10:00:01 PDT 2013
> fibs.forEachUntil(n -> {
This usage reflects a widespread misunderstanding about what
forEachUntil is for. (This misunderstanding is sadly so widespread I
might consider just removing it.) To be fair, the docs aren't fully
written yet, so the warnings aren't all there, but forEachUntil has
absolutely nothing to do with content-based control. Trying to distort
it into doing so will only bring pain. (Yes, I know you want
content-based control. Yes, I've heard all the arguments about why it
is useful, and I don't disagree, but we don't have that yet, and won't
for 8.) Bottom line: this is not the droid you are looking for.
More information about the lambda-dev
mailing list