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

C# 7.3: Expression variables in initializers #3963

Closed
BillWagner opened this issue Dec 15, 2017 · 2 comments
Closed

C# 7.3: Expression variables in initializers #3963

BillWagner opened this issue Dec 15, 2017 · 2 comments

Comments

@BillWagner
Copy link
Member

This would extend variable declarations and pattern matching syntax to three places where they are not allowed today:

  1. Constructor initializers
  2. Field initializers.
  3. Query clauses

The spec defines the scoping rules and related language design elements.

dotnet/csharplang#32

@mairaw mairaw added this to the Backlog milestone Dec 18, 2017
@mairaw mairaw added the P1 label Feb 12, 2018
@BillWagner
Copy link
Member Author

The updated proposal is here

@BillWagner
Copy link
Member Author

I reviewed all the existing docs, and we don't say that the new locations are disallowed for declaring out variables where they are used. The only updates will be in the "What's new" topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants