← Back to context Comment by yunnpp 21 hours ago What stability issues? 6 comments yunnpp Reply rauli_ 17 hours ago Unchecked exceptions will eventually lead into programs crashing because some developer forgot to catch specific type of exception somewhere. ahtihn 7 hours ago That seems like a better outcome than continuing when an error happened while thinking everything succeeded? drysine 12 hours ago And developers never forget to check error codes. listeria 3 hours ago may I introduce you to the nodiscard attribute[1]? enum (class)? [[nodiscard]] Error { Ok, NoMem, ... }; [1]: https://en.cppreference.com/w/cpp/language/attributes/nodisc... 1 reply → dan00 7 hours ago Looking at code, it‘s easier to spot the missing check for an error code, than a not catched exceptions.Also error codes are part of the signature of a function, which exceptions aren‘t.
rauli_ 17 hours ago Unchecked exceptions will eventually lead into programs crashing because some developer forgot to catch specific type of exception somewhere. ahtihn 7 hours ago That seems like a better outcome than continuing when an error happened while thinking everything succeeded? drysine 12 hours ago And developers never forget to check error codes. listeria 3 hours ago may I introduce you to the nodiscard attribute[1]? enum (class)? [[nodiscard]] Error { Ok, NoMem, ... }; [1]: https://en.cppreference.com/w/cpp/language/attributes/nodisc... 1 reply → dan00 7 hours ago Looking at code, it‘s easier to spot the missing check for an error code, than a not catched exceptions.Also error codes are part of the signature of a function, which exceptions aren‘t.
ahtihn 7 hours ago That seems like a better outcome than continuing when an error happened while thinking everything succeeded?
drysine 12 hours ago And developers never forget to check error codes. listeria 3 hours ago may I introduce you to the nodiscard attribute[1]? enum (class)? [[nodiscard]] Error { Ok, NoMem, ... }; [1]: https://en.cppreference.com/w/cpp/language/attributes/nodisc... 1 reply → dan00 7 hours ago Looking at code, it‘s easier to spot the missing check for an error code, than a not catched exceptions.Also error codes are part of the signature of a function, which exceptions aren‘t.
listeria 3 hours ago may I introduce you to the nodiscard attribute[1]? enum (class)? [[nodiscard]] Error { Ok, NoMem, ... }; [1]: https://en.cppreference.com/w/cpp/language/attributes/nodisc... 1 reply →
dan00 7 hours ago Looking at code, it‘s easier to spot the missing check for an error code, than a not catched exceptions.Also error codes are part of the signature of a function, which exceptions aren‘t.
Unchecked exceptions will eventually lead into programs crashing because some developer forgot to catch specific type of exception somewhere.
That seems like a better outcome than continuing when an error happened while thinking everything succeeded?
And developers never forget to check error codes.
may I introduce you to the nodiscard attribute[1]?
[1]: https://en.cppreference.com/w/cpp/language/attributes/nodisc...
1 reply →
Looking at code, it‘s easier to spot the missing check for an error code, than a not catched exceptions.
Also error codes are part of the signature of a function, which exceptions aren‘t.