Nicolai Parlog 1/27/2022

More Opinions On Optional

Read Original

This article analyzes the ongoing debate around Java's Optional type, specifically its use for method parameters. It addresses common criticisms, like call site clutter, and presents counterarguments based on practical experience. The author compares modeling absent values via nulls, method overloading, and Optional, examining their behavior in different scenarios.

More Opinions On Optional

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser