tee() (original) (raw)

Sam Pullara sam at sampullara.com
Fri Jan 25 11:02:06 PST 2013


Why not just make a true tee() that duplicates the stream and you can use that for debugging?

Sam

On Fri, Jan 25, 2013 at 7:59 AM, Brian Goetz <brian.goetz at oracle.com> wrote:

In which case tee() needs more than the usual number of disclaimers about please not side-effecting the source...

The exact same number of disclaimers -- it is never OK -- but we can remind everyonhe that the purpose of the peek() method is for debugging, not for side-effecting anything that counts. Even less so than forEach.



More information about the lambda-libs-spec-observers mailing list