3 ms·
> Optionals are a mistake but the only fault lies in those who put a null inside. If you, or a third-party exposed a "Optional", then it's the API mistake. You
by ElectricalUnion 4y ago
> Optionals are a mistake but the only fault lies in those who put a null inside.
If you, or a third-party exposed a "Optional", then it's the API mistake. You're never supposed to expose an Optional as either input or output; they're clunky implementation details of the Java Maybe monad.