News for hackers. Stuff that matters.
Re:The Next Step for Generics by richardwhiuk on Thursday June 18, 2020 @12:56PM (#23565053)
The code ends up looking like:

  Optional<Integer> foo;

  //....

  if (foo != null) {
      foo.and_then(new Consumer () {
            function accept(Integer foo) {

            }
      });
  }
Re:The Next Step for Generics by karmakaze on Friday June 19, 2020 @03:04PM (#23577810)
I would never assign null to an Optional nor use a library that returned one.

To ensure assignment before use make it final.