BaseStream & Stream
Remi Forax
forax at univ-mlv.fr
Sat Dec 1 16:02:39 PST 2012
Brian,
I think BaseStream (as supertype of Stream, IntStream, LongStream, etc)
is not the best design.
I see the fact that an IntStream should be view as a BaseStream as an
interopt issue,
I think it's better if IntStream has a method asStream that return a Stream,
i.e. a real Stream not a strawman stream as BaseStream currently is.
This design is in my opinion better because from the user point of view,
there is only one interface, Stream.
Note that java.nio.Buffer has a similar design.
cheers,
Rémi
More information about the lambda-libs-spec-observers
mailing list