-
Notifications
You must be signed in to change notification settings - Fork 1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Champion "deconstruction in from and let" #189
Comments
Is there any progress on this? The more one gets used to deconstruction, the more annoying it becomes that |
This feature is in the Any Time bucket, which means we are unlikely to spend time on it ourselves, but if a motivated community member would like to contribute, we would be happy to review. Currently, this issue needs a specification for LDM to review and approve. |
Any chance this could make it in C# 12? |
@jhgbrt see the comment above yours. |
Does this cover things like from person in People
where person.Age is int age && age >= 18 // person.Age is a nullable int
select (person, age) or would that be a separate ticket? |
I don't think that would be covered by this. That would be changing the scoping of existing code, which would be concerning. |
Oof. I see what you mean - my code example would compile today if something called Of course, breaking existing code is a big deal and should only be done in extenuating circumstances. But does "the code is probably not doing what they intended in the first place" count as an extenuating circumstance? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Summary
Allow declaring multiple range at once with
let
. For example,... let (x, y) = deconstructable ...
.See also dotnet/roslyn#13964
https://github.com/dotnet/csharplang/blob/master/meetings/2016/LDM-2016-12-07-14.md#deconstruction
The text was updated successfully, but these errors were encountered: