4 ms·
In a language like C++ returning status codes means that callers can and will ignore it, even when they shouldn't.
by int_19h 4y ago
In a language like C++ returning status codes means that callers can and will ignore it, even when they shouldn't.
- zetafunction 4y agoSince C++17, using [[nodiscard]] can help with that.
- jandrewrogers 4y agoIndeed, Google's implementation of Status/StatusOr requires explicit handling of those objects, they cannot be discarded automatically.