You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We only were able to implement P0 deconstruction scenarios in C# 7, which leaves a number of candidates unaddressed (let clause, from clause, lambda, method declaration, using, outvar, join clause, query continuation clause, join into clause, catch).
The first three in particular could use further investigation.
In something like the sugar of the from clause it looks super natural, but in the case of a simple func, it just odd to look at especially because parentheses nesting normally does not change meaning. I think case is more agreeable, but I'm comfortable without it being present in lambdas, provided I could at least get a friendly name e.g.
.Select((var x, var y) u=> u.x+ u.y) is a lot better than Item.
We only were able to implement P0 deconstruction scenarios in C# 7, which leaves a number of candidates unaddressed (let clause, from clause, lambda, method declaration, using, outvar, join clause, query continuation clause, join into clause, catch).
The first three in particular could use further investigation.
From clause
Instead of:
Allow:
Let clause
Lambda
Instead of:
Allow:
Or maybe this syntax instead:
FYI @dotnet/roslyn-compiler @MadsTorgersen @CyrusNajmabadi @kuhlenh
The text was updated successfully, but these errors were encountered: