Skip to content
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

Disallow local variables from shadowing functions, structs, mappings,… #28433

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

mikebenfield
Copy link
Collaborator

… etc.

Copy link
Collaborator

@d0cd d0cd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, the PR looks good!
Left a question to clarify my understanding.
Do you think it's worth adding a message on why we're so tough on shadowing?

@mikebenfield
Copy link
Collaborator Author

Regarding adding a message about shadowing - sure, that sounds like a good idea. I'm not sure what to say about it though - why are we so tough on shadowing?

@d0cd
Copy link
Collaborator

d0cd commented Nov 7, 2024

We took the strong stance that shadowing means that you didn't name your functions, variables, and structs correctly.
Created an issue here: #28439

@d0cd d0cd merged commit 1e31a90 into mainnet Nov 7, 2024
10 checks passed
@d0cd d0cd deleted the shadowing branch November 7, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants