Primitive streams and optional

Brian Goetz brian.goetz at oracle.com
Wed Nov 21 06:27:44 PST 2012


> I prefer the use of Optional<Integer>. I could live, begrudgingly, with OptionalInt, but i don't think there is a strong technical requirement for it.

The argument against OptionalInt vs Optional<Integer> is basically "OMG, N more classes."  If we did Doug's "Numeric" trick, we could get away with one new OptionalNumeric class.  




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