Re:From zero to 10M lines of Kotlin
by acchow on Tuesday October 25, 2022 @03:46PM
(#33335251)
I'm not sure I understand the question. If you have only Optionals and Null does not exist, a NPE is impossible. The Optional type forces you to handle the empty case, so null safety is enforced by the type system.
[ Parent
| on HN ]
The question is how do you handle the empty case for the hundreds of fields you pull from other systems.