RFR : JDK-8001642 : Add Optional<T>, OptionalDouble, OptionalInt,	OptionalLong
    Brian Goetz 
    brian.goetz at oracle.com
       
    Wed Mar  6 11:34:21 PST 2013
    
    
  
> For Option lovers, one way to view this: it enables someone to provide their own Option instead of the one we provide. Right? If not, then I'm less favorable.
> 
No, not right.  It prevents people from distinguishing between a stream that is empty and a stream containing only the "orElse" value.  Just like Map.get() prevents distinguishing between "not there" and "mapped to null."  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130306/30ee6695/attachment.html 
    
    
More information about the lambda-libs-spec-experts
mailing list