2 ms·
Null object is not bad, but std::optional has clearer semantics and is probably safer. This is probably the only sane alternative to exceptions - optional type
by blub 10y ago
Null object is not bad, but std::optional has clearer semantics and is probably safer.
This is probably the only sane alternative to exceptions - optional types and result<T, E> types.