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

Fix invalid variable names #29

Open
ameliatastic opened this issue Oct 20, 2022 · 2 comments
Open

Fix invalid variable names #29

ameliatastic opened this issue Oct 20, 2022 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ameliatastic
Copy link
Owner

Rust has some reserved keywords/names that are valid variable names in Python, such as _ (single underscore, used to throw away values) and match. If you use one of these as a variable name in a Seahorse program, you'll usually get a very weird rustfmt error.

# For example, this should not be allowed.
match = filter(..., array)

Ideally, Seahorse should raise an error when one of these names are encountered, and guide the user to choose a different name.

@ameliatastic ameliatastic added bug Something isn't working good first issue Good for newcomers labels Oct 20, 2022
@ameliatastic ameliatastic moved this to Todo in Seahorse Oct 20, 2022
@Saksham093
Copy link

I'm working on this issue, I need more information.

@kubanemil
Copy link

Hey, can I handle this problem? Or does it no longer matter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

3 participants