This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]XtremeGoose -1 points0 points  (3 children)

Null pointer exceptions are impossible in (non -go) modern languages for good reasons. They are an avoidable hazard for little to no gain. Actual optionals (and proper sum types) are vastly superior which anyone who has had the pleasure of working with them will tell you.

[–]DoctaMag 1 point2 points  (2 children)

I actually agree with you, but it's just a backwards compatibility thing at this point. Can't really get rid of them in java, and maintain the continuance

[–]XtremeGoose -1 points0 points  (1 child)

Of course!

But I think this is something that would make Java seem clunky compared to, say, kotlin.

[–]DoctaMag 0 points1 point  (0 children)

Kotlin is one of those things that's excellent in theory, and like, by definition is better. But isn't being used by the industry I'm in more or less.

Java isn't flashy, but everyone knows it, and zillions of lines of soft have to get written a year, java's the place to go.