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

[Proposal] Consider relaxing shadowing to a warning. #28439

Open
d0cd opened this issue Nov 7, 2024 · 0 comments
Open

[Proposal] Consider relaxing shadowing to a warning. #28439

d0cd opened this issue Nov 7, 2024 · 0 comments
Labels
proposal A proposal for something new.

Comments

@d0cd
Copy link
Collaborator

d0cd commented Nov 7, 2024

Because variables are immutable, a strict stance against shadowing results in redeclarations of the form foo1, foo2, foo3, etc.
Shadowing is not a fundamental issue for the Leo language because we do SSA anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal A proposal for something new.
Projects
None yet
Development

No branches or pull requests

1 participant