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

Can't parse tuples starting with signed numbers #748

Closed
developedby opened this issue Feb 22, 2025 · 1 comment
Closed

Can't parse tuples starting with signed numbers #748

developedby opened this issue Feb 22, 2025 · 1 comment

Comments

@developedby
Copy link
Member

Reproducing the behavior

Writing expressions like these in functional syntax:

foo = (+1, -1)
bar = (-2.1)
baz = (+3 -4) # parses, but to the wrong expression

All fail because the parser sees the operator and thinks that must be a numeric operation.

Instead, we'd like for signed numbers to have priority over number operations at the start of the parens group, just like we do for *.

System Settings

Bend commit 0ac443c

Additional context

No response

@developedby
Copy link
Member Author

Closed by #749

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