News for hackers. Stuff that matters.
Re:Java for Everything (2014) by saheb37 on Wednesday March 30, 2016 @07:05AM (#11388388)
don't you get tired of NPEs and checking everything with possibility that it can be null? Scala solves it using Options.

There are lot more, but this is one which irritates me the most.

Re:Java for Everything (2014) by qw on Wednesday March 30, 2016 @12:21PM (#11390413)
Java 8 (or Guava for older versions) supports "Optional".

It is good practice for methods to return an Optional instead of null if you can't guarantee a non null value.