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

Tuples should be defined by commas(like python), not by parentheses #554

Closed
TimotejFasiang opened this issue Jun 6, 2024 · 1 comment · Fixed by #637
Closed

Tuples should be defined by commas(like python), not by parentheses #554

TimotejFasiang opened this issue Jun 6, 2024 · 1 comment · Fixed by #637
Assignees
Labels
enhancement New feature or request syntax About Bend's syntax

Comments

@TimotejFasiang
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In python, it is the commas, not the parentheses, that define the tuple. Not sure whether it's worth the effort to change this or whether there is a specific reason that it has to be this way.

Describe the solution you'd like
Having tuples be defined by commas and not by parentheses.

Describe alternatives you've considered
Leaving it the way it is, with tuples being defined by parentheses.

@developedby developedby added enhancement New feature or request syntax About Bend's syntax labels Jun 6, 2024
@developedby
Copy link
Member

developedby commented Jun 6, 2024

There is no specific reason and I don't think it'll cause any syntax conflict.

I just forgot about this case in Python.

(also I didn't know, but apparently you can do things like (a) = 1 in python)

@imaqtkatt imaqtkatt self-assigned this Jul 19, 2024
github-merge-queue bot pushed a commit that referenced this issue Jul 22, 2024
…ed-by-commaslike-python-not-by-parentheses

#554 tuples should be defined by commas like python not by parentheses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request syntax About Bend's syntax
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants