Re:Java 17 / JDK 17: General Availability
by MarkMarine on Tuesday September 14, 2021 @11:37AM
(#28526407)
Java tries so hard to be backwards compatible, I think null is here to stay. There is always Kotlin if you want better null safety, or compile time checks like null-away, but they are still null adjacent. Disappointing but that’s what we’re stuck with in service of backwards compatibility, but I’m not sure making these breaking changes is an improvement… look at Python 2->3 for an example
[ Parent
| on HN ]
Re:Java 17 / JDK 17: General Availability
by suyash on Tuesday September 14, 2021 @12:52PM
(#28527494)
yes and most java developers have come to terms with null and NPE, it's just part of programming in Java so honestly I'm fine with it being here.
Re:Java 17 / JDK 17: General Availability
by Cojen on Tuesday September 14, 2021 @01:28PM
(#28527946)
...and now that NPE has a "helpful" message, I've generally found it to be almost a non-issue these days. During development, I can usually figure out the problem immediately just from the message and I don't need to examine the stack trace.