2 ms·
You should never have to check that the Optional itself is null. While that is allowed by the language, it is such an obvious error that static analysis tools c
by organsnyder 11y ago
You should never have to check that the Optional itself is null. While that is allowed by the language, it is such an obvious error that static analysis tools could easily detect it.
- MBCook 11y agoThen it shouldn't be allowed by the language, and that's the core issue. Until the compiler enforces that Optionals aren't null they're not fit for most purposes.