BaseStream & Stream (original) (raw)
Remi Forax forax at univ-mlv.fr
Sat Dec 1 16:02:39 PST 2012
- Previous message: Stream and Iterator
- Next message: BaseStream & Stream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Stream and Iterator
- Next message: BaseStream & Stream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-experts mailing list