Skip to content
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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Copy link
Contributor Author

Much better! Thanks!

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

source/exceptions.tex Outdated Show resolved Hide resolved
@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
Copy link
Contributor Author

How do we feel about the proposed description now?

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.

3 participants