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

Considering an adjective other than immediate #642

Open
brevzin opened this issue Nov 14, 2024 · 3 comments
Open

Considering an adjective other than immediate #642

brevzin opened this issue Nov 14, 2024 · 3 comments

Comments

@brevzin
Copy link

brevzin commented Nov 14, 2024

In talking with Jason Merrill about wording for a paper, we noticed that we have several terms that are some kind of immediate noun:

  • immediate subexpression
  • immediate subobject
  • immediate scope
  • immediately-declared constraint
  • immediate function
  • immediate invocation
  • immediate-escalating (expression or function)

In the [expr.const] section, immediate functions, immediate invocations, and immediate-escalating expressions and functions are closely related to each other. "Immediate" here means "now." But that's not really the same meaning of "immediate" as in the other terms.

In the others, I wonder if an adjective like "direct" would simply be better. Your direct subexpressions and subobjects, your direct scope? We actually already talk about direct members and direct base classes, so direct subobjects and direct subexpressions makes sense.

@t3nsor
Copy link

t3nsor commented Nov 14, 2024

I agree that we should say "direct subexpression".

The one use of "immediate subobject" is in https://eel.is/c++draft/class.union.general#5 and I'm not sure why it doesn't just say "direct member", or even just "member" (since a union can't have inherited members).

I don't like "direct scope". How about "proximate scope"?

@hubert-reinterpretcast
Copy link

For "immediately-declared constraint", I think that the "immediately" can just be dropped.

@opensdh
Copy link

opensdh commented Dec 13, 2024

Immediate means, as the etymology suggests, without (the possibility of) an intermediary. If that intermediary would be an interval of time, it means "now" (or at least "no later than"), but obviously it has many non-temporal uses (family, assembly operands, area). It makes sense to seek a reserved English counterpart to consteval (even though colloquially that's what we say), but I wonder if it wouldn't be more helpful to change that usage of "immediate" (because "immediate invocation" seems like it should be the opposite of something like "asynchronous invocation" rather than of "runtime invocation").

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

No branches or pull requests

4 participants