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

Add detailed design to clarify the field keyword spec and incorporate all LDM decisions #8069

Merged
merged 30 commits into from
Jul 3, 2024

Conversation

jnm2
Copy link
Contributor

@jnm2 jnm2 commented Apr 23, 2024

Motivated by noticing missing scenarios on SharpLab for the feature branch.

@CyrusNajmabadi indicated that this may need to go through LDM.

@jnm2 jnm2 requested a review from a team as a code owner April 23, 2024 03:17
@jnm2 jnm2 requested a review from CyrusNajmabadi April 23, 2024 03:17
@jnm2 jnm2 force-pushed the semiauto_spec_clarification branch from c97468e to 8a49b97 Compare April 23, 2024 03:20
@jnm2 jnm2 requested a review from CyrusNajmabadi April 23, 2024 04:08
proposals/semi-auto-properties.md Outdated Show resolved Hide resolved
proposals/semi-auto-properties.md Show resolved Hide resolved
proposals/semi-auto-properties.md Outdated Show resolved Hide resolved
proposals/semi-auto-properties.md Outdated Show resolved Hide resolved
@jnm2
Copy link
Contributor Author

jnm2 commented Apr 25, 2024

I also want to call out that this proposal does not include indexers.

@jnm2 jnm2 force-pushed the semiauto_spec_clarification branch from aa163ad to e507eb4 Compare May 9, 2024 02:08
@jnm2 jnm2 requested a review from jaredpar May 9, 2024 04:55
@jnm2
Copy link
Contributor Author

jnm2 commented May 9, 2024

@CyrusNajmabadi Are you still thinking we could need to take to LDM for some confirmations before merging? I think this is ready for that if so (could you look it over with the new updates)?

@jnm2 jnm2 requested a review from cston June 12, 2024 19:42
set
{
if (value == parent.AmbientValue)
field = null; // No warning here. Resume following the parent's value.
Copy link
Member

Choose a reason for hiding this comment

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

This feels wrong to me. Feel like this should be a warning and users complaining about that warning would be evidence that we should expand the feature in the future to allow explicit declaration of the field type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great consideration, being discussed in WG.

@CyrusNajmabadi CyrusNajmabadi merged commit 5fd61cd into dotnet:main Jul 3, 2024
1 check passed
@jnm2 jnm2 deleted the semiauto_spec_clarification branch July 3, 2024 21:06
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.

6 participants