-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Implement ref-kind modifiers on implicitly typed lambda parameters. #52518
Comments
Thanks @keith-anders.
Currently the syntax in the proposal continues to require an explicit type if a modifier is provided. The question has been raised about whether to relax that requirement and allow ref-kind modifiers with implicitly typed parameters, but at this moment that is not included in the proposal. |
Thanks for the interest and enthusiasm here 😄 Generally we recommend that contributors start off with bug fixes before diving into feature work. Feature work is very involved process. Even the simplest of features require a significant amount of review, testing and integration up the stack. It's not just enough for us to make the compiler work, we have to make sure the entire ecosystem around the feature works as well. For example that means making sure that IDE intellisense works, formatting, typing, etc ... In addition to being work for the feature author to contribute it's also resources we need to allocate to review, validate and help guide the author through the odd ball cases that pop up. This is true irrespective of whether the feature author is community or works on the compiler team. This is why we generally push for first contributions to be bug fixes. It's a way to get familiar with the code base, the type of problems that you need to be thinking about when contributing, the type of tests to author, etc .... Once contributors are experienced in bugs then we recommend moving into feature work. |
Championed issue: #338
I understand this will have to wait until the implementation for C# 10's lambda improvements are in. It seems possible that it will automatically "just work" at that time, if I read the Syntax proposal correctly, but I think it'll be worth at least testing for. If it doesn't work automatically after implementing the lambda improvements I'll be happy to pick this up and implement it at the time.
Test Ideas
(ref x) => ++x;
static out x => x = 42;
I feel like the syntax could be very close between this and a left deconstruction, but I couldn't come up with a line of code that was sufficiently ambiguous to be a good test case. Suggestions?
Minor note: This is my first time raising an issue of substance on roslyn, so I am grateful for corrective feedback.
The text was updated successfully, but these errors were encountered: