do lambda params support any form of deconstruction syntax?
i would have expected one of these to work:
but unfortunately they dont. is anything like this possible in lambda params at all?
3 Replies
It's an, as of yet, unanswered proposal: https://github.com/dotnet/csharplang/discussions/258
GitHub
Proposal: Tuple deconstruction in lambda argument list · dotnet csh...
A lambda that accepts a (single) tuple as argument can only be defined with the tuple as a single argument and not by the tuples items. I’d like to see that the tuple deconstruction also works in t...
There's someone who said they'd champion it, but there's no ETA or anything yet
No but this should be fine