3 ms·
I disagree. Exceptions are a fundamentally different control flow. Exceptions are exceptions. Return values are not. I would not call std::optional in C++ any
by knorker 4y ago
I disagree. Exceptions are a fundamentally different control flow. Exceptions are exceptions. Return values are not.
I would not call std::optional in C++ any form of checked exception, and the difference isn't that std::optional doesn't carry value-missing metadata.