-
Notifications
You must be signed in to change notification settings - Fork 800
[optional.optional.general], [optional.optional.ref.general] Use "object of type optional<T&>" correctly #8220
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
Conversation
Where?
The paper says "An object"
No it isn't, are you looking at the wrong paper? I think you're looking at an old revision.
That's what the paper says.
We use it both ways, e.g. "Effects: Constructs an empty |
|
Hmm yeah, I was in a hurry when I drafted this and looked at the pre-existing wording in https://eel.is/c++draft/optional.optional.general#1, which uses the "instance" term. The paper was correctly applied, but
seems bad regardless. While we're on the subject, it's probably best to remove that weird asymmetry. We shouldn't be talking about "instances" for If there's precedent, the second "an |
|
Yes, feel free to include the pre-existing "instance of |
…ect of type optional<T&>" correctly
|
This current change looks fine now, but I wonder if we have or want some general policy on the use of the phrase "an instance of |
|
We don't have any such policy, and I agree that there's nothing very wrong with "an instance of X". We definitely want to fix "An object of |
|
Agreed, thanks! |
The current wording in p1 makes no sense to me. Firstly, it says
https://github.com/cplusplus/papers/issues/1661 says
#7979 editorially replaced "instance" with "object" (accidentally? I could not find discussion on this), and now this is grammatically wrong. The wording idiom is
The second sentence is also inconsistent with the paper. The paper once again uses the term "instance", but the draft wording just says
This is also incorrect because it's a category error. We use this idiom like "an
array" or "avector" when referring to types, not to objects.