Primitive streams and optional (original) (raw)

Doug Lea dl at cs.oswego.edu
Sun Nov 25 04:50:47 PST 2012


On 11/24/12 17:40, Brian Goetz wrote:

T[] mapped = Arrays.stream(input).map(mapper).toArray(); ... I was mainly talking of the semantics presented to the user, where the user might be confused into thinking that indexes into the source are valid in the output, but this is only accidentally true in the very common case where there are no nulls in the input. Which means users will assume it to be true more often, and be surprised.

Yeah, array indexing is not very streamy.

Silly aside: Most differences of opinion between Brian and me ultimately boil down to some combination of

-Doug



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