Skip to content

Add note for the purpose of input parameters #1008

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 29, 2023

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented Nov 23, 2023

Fixes #845.

I'm not at all convinced of the tone or precision of this - it's effectively a straw man for further discussion.

(Requesting review from Bill and Nigel just for preliminary reactions.)

Fixes dotnet#845.

I'm not at all convinced of the tone or precision of this - it's
effectively a straw man for further discussion.
@jskeet jskeet added the meeting: discuss This issue should be discussed at the next TC49-TG2 meeting label Nov 23, 2023
@BillWagner
Copy link
Member

I think this looks reasonable. It's the combination of two factors for efficiency:

  1. struct types may be stored on the stack, minimizing heap allocations and GC work.
  2. in parameters aren't copied, and can't be modified.

Adding @jaredpar for his thoughts.

Copy link
Member

@jaredpar jaredpar left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jskeet jskeet merged commit 591bd27 into dotnet:draft-v8 Nov 29, 2023
@jskeet jskeet deleted the in-parameters branch November 29, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meeting: discuss This issue should be discussed at the next TC49-TG2 meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

§15.10.1 Add note for purpose of in parameters in operators
6 participants