4 ms·
Kotlin does it, but it's next to useless because the ecosystem makes heavy use of null.
by tathisit 5y ago
Kotlin does it, but it's next to useless because the ecosystem makes heavy use of null.
- Tainnor 5y agowhat? I don't feel it's "pointless" at all. Many popular Java libraries and frameworks (including Spring) use nullability annotations which can be interpreted correctly by Kotlin. It's true that I can't be 100% sure not to get NPEs, but I think it's close enough and I've rarely seen NPEs in Kotlin codebases.
- rickette 5y agoIndeed, Kotlin's null handling is great. NPE's in Kotlin code aren't common.
- syncsynchalt 5y agoKotlin is my suggestion too. Kotlin (or any other JVM variant that does non-nullability in a seamless way) and coding guidelines should get you 90% of the way to a null-free world.