No-reuse-streams
Paul Sandoz
paul.sandoz at oracle.com
Fri Nov 23 05:16:00 PST 2012
On Nov 23, 2012, at 12:52 PM, Remi Forax <forax at univ-mlv.fr> wrote:
>
>>
>> Should the following throw an ISE on the last line of the following?
>>
>> Stream s = ..
>> Object i1 = s.findFirst();
>> Stream s1 = s.map(...);
>>
>> i.e. should we fail on the s.map(...) or just when a terminal operation occurs, if at all?
>
> it should fail of s.map(...)
> fail early or fail earlier.
>
I agree.
Paul.
More information about the lambda-libs-spec-observers
mailing list