logoalt Hacker News

nomelyesterday at 11:10 PM1 replyview on HN

Yeap. forgetting to propagate or handle an error provided in a return value is very very easy. If you fail to handle an exception, you halt.


Replies

vasilvvtoday at 3:45 AM

For what it's worth, C++17 added [[nodiscard]] to address this issue.