Skip to content

[except.terminate] Better describe the function terminate #7281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

AlisdairM
Copy link
Contributor

@AlisdairM AlisdairM commented Oct 2, 2024

While std:terminate was originally conceived as the way to report failures in the exception handling machinery, it has evolved to become a more general tool for reporting unrecoverable failures in the C++ runtime. This rewording attempts to address that evolving design, and in doing so addresses the outstanding %FIXME% that the current text is not adequately descriptive in the first place.

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think "the C++ runtime" is defined. Maybe just "the program"?

Or "Some errors in a program cannot be recovered from, ..." so that we don't talk about "encountering an error", which sounds like it might just be bad luck rather than well-defined control flow that results from the program logic.

@AlisdairM AlisdairM force-pushed the better_describe_terminate branch from 94a4ad6 to 425315f Compare October 2, 2024 19:33
@AlisdairM
Copy link
Contributor Author

Much better! Thanks!

Applied your suggestion, followed by minor grammar tweaks, and force-pushed to allow a clean merge.

@AlisdairM AlisdairM force-pushed the better_describe_terminate branch from 425315f to 8277d9d Compare October 2, 2024 20:15
@AlisdairM AlisdairM changed the title [except.terminate] Better describe the function [except.terminate] Better describe the function terminate Oct 2, 2024
While 'std:terminate' was originally conceived as the way to
report failures in the exception handling machinery, it has
evolved to become a more general tool for reporting unrecoverable
failures in the C++ runtime.  This rewording attempts to address
that evolving design, and in doing so addresses the outstanding
%FIXME% that the current text is not adequately descriptive in
the first place.
@AlisdairM AlisdairM force-pushed the better_describe_terminate branch from 8277d9d to 53c6318 Compare October 21, 2024 21:36
@AlisdairM
Copy link
Contributor Author

How do we feel about the proposed description now?

@AlisdairM
Copy link
Contributor Author

Rebased and force-pushed for good measure. I believe all feedback is addressed, but do we want to flag this for an LWG review as well?

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think LWG needs to see this, it seems fairly simple and uncontroversial.

@tkoeppe tkoeppe merged commit eac0893 into cplusplus:main Nov 19, 2024
2 checks passed
@AlisdairM AlisdairM deleted the better_describe_terminate branch November 19, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants