Conversation
|
Really nice work! List initializers (e.g. in an object creation expression) look like |
Unfortunately, with braces, empty list pattern would be ambigious with property pattern clause. |
I would suggest allowing pattern based enumeration as well, same as foreach. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jcouv
left a comment
There was a problem hiding this comment.
Done with review pass (iteration 11)
jcouv
left a comment
There was a problem hiding this comment.
LGTM Thanks (iteration 12) with minor follow-up comments.
|
Tagging @333fred for a second look. Thanks |
333fred
left a comment
There was a problem hiding this comment.
A couple of clarity comments.
|
Cool. Thanks for writing this up and sorting many questions. We'll start looking at your roslyn-side change now :-) |
Tracking issue: #3435
Discussion: #1510, #1039, #898
Prototype: dotnet/roslyn@main...alrz:list-patterns
Proposal: Rendered