cedric
05/19/2016, 7:20 PMOptional
was never meant to be a general purpose solution to avoiding null. Quoting Brian:
Our intention was to provide a limited mechanism for library method return types where there needed to be a clear way to represent "no result", and using null for such was overwhelmingly likely to cause errors.