Remix.run Logo
kllrnohj 6 hours ago

If you forget to handle a C++ exception you get a clean crash. If you forget to handle a C error return you get undefined behavior and probably an exploit.

Exceptions are more robust, not less.

nomel 6 hours ago | parent [-]

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.

vasilvv 2 hours ago | parent [-]

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