4 ms·
I think the main use of Optional is in a codebase which doesn't _ever_ allow "null". If every method call either returns an actual object then you can get rid
by AndrewDucker 11y ago
I think the main use of Optional is in a codebase which doesn't _ever_ allow "null".
If every method call either returns an actual object then you can get rid of null checks, and not bother doing any checks on method returns that don't return an Optional.
- electrum 11y agoThat is exactly how we use Optional.