`Optional` was never meant to be a general purpose...
# random
c
Optional
was never meant to be a general purpose solution to avoiding null. Quoting Brian:
Copy code
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.
👍 1