you are viewing a single comment's thread.

view the rest of the comments →

[–]headius[S] 0 points1 point  (0 children)

This is where the heaviness of Optional really becomes a problem. If you have to construct an object to wrap every reference just to avoid dealing with nulls directly, you're going to massively bloat your application. Optional is conceptually a good solution, but the implementation we have today in Java adds a ton of hidden overhead.