Y
Hacker News
new
|
ask
|
show
|
jobs
by
int_19h
1364 days ago
In a language like C++ returning status codes means that callers can and will ignore it, even when they shouldn't.
1 comments
zetafunction
1364 days ago
Since C++17, using [[nodiscard]] can help with that.
link
jandrewrogers
1364 days ago
Indeed, Google's implementation of Status/StatusOr requires explicit handling of those objects, they cannot be discarded automatically.
link