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

Don't allow variable names to contain __ #478

Closed
developedby opened this issue May 23, 2024 · 0 comments · Fixed by #487
Closed

Don't allow variable names to contain __ #478

developedby opened this issue May 23, 2024 · 0 comments · Fixed by #487
Assignees
Labels
bug Something isn't working syntax About Bend's syntax

Comments

@developedby
Copy link
Member

__ is reserved for generated function names.
At first glance it might look like this is not a problem, since generated functions are only created after resolving variable names.
However, if this is no longer true, as will be the case with the package manager, users will be able to call generated functions, which shouldn't be possible.

We should move the restriction of not having "__" from the top-level name parser to the general name parser.

@developedby developedby added bug Something isn't working syntax About Bend's syntax labels May 23, 2024
@imaqtkatt imaqtkatt self-assigned this May 24, 2024
@imaqtkatt imaqtkatt linked a pull request May 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working syntax About Bend's syntax
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants