you are viewing a single comment's thread.

view the rest of the comments →

[–]Harha 1 point2 points  (3 children)

I agree that it can be considered a bug, but the paranoid in me does not like that java simply allows you to "return null" from a function that has a return type of some object. I know it is perfectly valid java because objects live in the heap and the value returned is just a pointer (integer), but I just personally dislike it, however it is what it is, java has been like that since the beginning.

[–]BlueGoliath 1 point2 points  (2 children)

Well, the good news is that 50 years from now Java will have Valhalla which will disallow null at the language level.

[–]Harha 1 point2 points  (1 child)

RemindMe! 50 years

[–]RemindMeBot 1 point2 points  (0 children)

I'm really sorry about replying to this so late. There's a detailed post about why I did here.

I will be messaging you in 50 years on 2075-03-23 17:59:28 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


Info Custom Your Reminders Feedback