This blog post should start with a popular quote:
Tony Hoare introduced
null
references in ALGOL W back in 1965 “simply because it was so easy to implement”, says Mr. Hoare. He talks about that decision considering it “my billion-dollar mistake”.
Instead of dealing with null
/ not-null
references, Java 8 JDK
ships with new type: Optional<T>
. How to use it?