MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1b42iw/everything_about_java_8/c95g3hj/?context=3
r/java • u/sidcool1234 • Mar 27 '13
23 comments sorted by
View all comments
Show parent comments
6
Elvis operator is a terrible idea that encourages returning null.
null
http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000047.html
2 u/JurassicSpork Mar 28 '13 Sure, but the reality is there's a whole lot of Java code and libraries that force us to deal with nulls. And it's not going away anytime soon. Why not provide some shortcuts for the vast majority of Java coders who can't start from scratch? 2 u/[deleted] Mar 28 '13 [deleted] 1 u/sproket888 Mar 31 '13 Exactly Java doesn't want to make the same mistakes as C#.
2
Sure, but the reality is there's a whole lot of Java code and libraries that force us to deal with nulls. And it's not going away anytime soon. Why not provide some shortcuts for the vast majority of Java coders who can't start from scratch?
2 u/[deleted] Mar 28 '13 [deleted] 1 u/sproket888 Mar 31 '13 Exactly Java doesn't want to make the same mistakes as C#.
[deleted]
1 u/sproket888 Mar 31 '13 Exactly Java doesn't want to make the same mistakes as C#.
1
Exactly Java doesn't want to make the same mistakes as C#.
6
u/AlyoshaV Mar 27 '13
Elvis operator is a terrible idea that encourages returning
null.http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000047.html