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

Disambiguate the "+" operator #534

Open
cjpatton opened this issue Jan 18, 2025 · 2 comments
Open

Disambiguate the "+" operator #534

cjpatton opened this issue Jan 18, 2025 · 2 comments

Comments

@cjpatton
Copy link
Collaborator

list feedback:

... the + (plus) operator is used for both concatenation of lists, concatenation of bytes, and for addition of numbers (or field elements). This may be confusing for people not familiar with Python.

@cjpatton
Copy link
Collaborator Author

cjpatton commented Jan 18, 2025

My first idea here is to clarify that "+", "-", "*", etc. are either on int or Field. Then we can use concat() for concatenating lists, but it would be easier to just explain the syntax in the conventions section.

@cjpatton
Copy link
Collaborator Author

cc @armfazh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant