-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow parsing deconstruction-declaration as expression #15049
Comments
Within 2.0, we need to at least do some disambiguation in the parser. The rest of the feature can be post-2.0. |
In particular, this means that deconstruction declaration can be used in embedded statement. if (flag)
var (x, y) = e; |
A proposed plan of attack, from the language design POV, is here: https://gist.github.com/gafter/36265536f98b7dfd58fdc1d86ec5aecb |
@MadsTorgersen and I came up with a way to prevent this from being a breaking change. I’ll revise the proposal shortly. |
Moved to 2.1. |
@gafter is this important for 15.3 or can we push off to 15.6? |
This is the implementation side of a language feature (dotnet/csharplang#125) that is not in 7.1. So it should be pushed off, or even closed until we start work on the feature. |
For instance,
var x = ((var y, var z) = e).Item1;
The text was updated successfully, but these errors were encountered: