vitalyd at gmail.com
Fri Sep 21 08:46:33 PDT 2012
The main benefit of Optional, to me, is that it clearly tells the caller or
receiver that this thing may be null; the conventional way is to document
pre/post conditions, but developers are notorious for not reading docs.
Returning/taking Optional is "in your face" - the fluent API is a secondary
Sent from my phone
On Sep 21, 2012 11:42 AM, "Zhong Yu" <zhong.j.yu at gmail.com> wrote:
> aren't all reference types in Java "optional" already? If "fluent" API
> is desired, is it possible to add methods to the null type?
More information about the lambda-dev