-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Support multiple implicitly typed local variables in a single declaration. #5048
Support multiple implicitly typed local variables in a single declaration. #5048
Conversation
I'm not sure I understand why this is viewed as an improvement to the language. |
@gafter We can talk about it at today's LDM. |
@gafter Hey Neal... why was this closed? Thanks! |
@CyrusNajmabadi Based on LDM "never". |
Really? That seems rather unfortunate. My proposal provided a way to allow this functionality in a way that simply allowed more scenarios when there was no chance of confusion or other problems. From the last LDM where I remember talking about this, the options were:
There were problems with both 3 and 4. Namely that there was a split (both in the LDM and the community) as to which was better. However, there was no problem with '2' afaik. Indeed, '2' had the benefit that it didn't exclude us from doing '3' or '4' in the future if we wanted to. So '2' was a strictly positive step forward for where we are now, with no downsides (that I can remember). It does not disallow anything allowed today, and it at least allows multi-var in some common cases where the user does want to use the same type for each var. What's the reason we think 'never' is appropriate here? Thanks! |
@CyrusNajmabadi Excellent question to raise at the LDM. |
Fixes: #4294