-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
function argument shadowing #1661
Comments
Personally, I think that should be fatal error. So wacky. |
Although I basically agree, there is one possibly far-reaching consequence of this: we might need to make _, x, _ = f() But if we start warning about shadowed assignments like this, does that become illegal? Anyway, since we allow just omitting argument names, maybe having it be an error just in function signatures is ok. |
Multiple assignment is actually sequential, so that just rebinds |
This should probably generate a warning:
The text was updated successfully, but these errors were encountered: