6 ms·
Do you feel that a language has to have something at the language level to prevent NPEs? In my experience, Scala does pretty well without it. I guess is your
by joefkelley 4y ago
Do you feel that a language has to have something at the language level to prevent NPEs?
In my experience, Scala does pretty well without it.
I guess is your point that the language should make it impossible to write bad code, not just make it easy to write good code?
- kaba0 4y agoJust a heads up, Scala 3 actually has a compile flag that will make types exclude ‘null’ as a valid subtype, so every nullable variable will have to have type signatures like String | Null.