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

lang wish: unused destructured variable can be meaningfully _varName named, with leading _ to suppress "unused" error #106

Open
rjharmon opened this issue Oct 2, 2023 · 0 comments

Comments

@rjharmon
Copy link
Contributor

rjharmon commented Oct 2, 2023

... as with Typescript, where naming a destructured variable with leading _ allows there to be readability in the semantic variable name, with the _ clue that it's not used.

It would be extra nice if that _varName was actually not part of the resulting scope, so it CANT be used.

@rjharmon rjharmon changed the title wish: unused destructured variable can be meaningfully _varName named, with leading _ to suppress "unused" error lang wish: unused destructured variable can be meaningfully _varName named, with leading _ to suppress "unused" error Oct 2, 2023
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

No branches or pull requests

1 participant