NULL Is bad : Using Optional in Java 8

Oh man has the argument against using NULL come out strong in event years.

It started with the inventor of null, Tony Hoare, calling it the Billion Dollar Mistake in 2009.

And everyone has piled on since. No one likes the NullPointerException.

See this tweet, showing everyone is jumping on this bandwagon. https://twitter.com/yegor256/status/835854965721694212

This blog author decided to take on this argument from a different angle, somewhat amusing, still thought-provoking:  Optional Method Parameters via @DZone

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s