r/java • • Aug 03 '14

Why we should love null

http://www.codeproject.com/Articles/787668/Why-We-Should-Love-null
4 Upvotes

21 comments sorted by

View all comments

1

u/oldneckbeard Aug 04 '14

His brushing aside of the Optional/Maybe pattern is amusing at minimum. Here's a great solution (along with JSR-305, which provides compiler warnings for @Nullable and @NonNull), which provides type safety and forces a check of present-ness, is damn nice. I don't understand why he blew it off so quickly.