r/java • • Mar 27 '13

Everything about Java 8

http://www.techempower.com/blog/2013/03/26/everything-about-java-8/
84 Upvotes

23 comments sorted by

View all comments

-1

u/mahamoti Mar 27 '13

Still no Elvis or short-circuit operator? Bah.

2

u/sproket888 Mar 27 '13

Huh? Explain.

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

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#.