We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The spec states that / is a binary operator (a Binop), but doesn't give it any meaning (it's not considered an Arithmetic operation.
/
Binop
It is included as an Augmented assignment (/=), but without behavioural specification.
/=
These all appear in the grammar reference.
Should / be removed from the grammar, or should its behaviour be specified?
The text was updated successfully, but these errors were encountered:
As in Python 3, // should be integer division and / should be float division. However, the spec doesn't define floats at the moment.
//
Starlark-Go implementation can support floats behind a flag. If you don't support floats, you should raise an error for the / operator.
Keeping it in the grammar can help tools (e.g. formatter, linter) handle it.
Sorry, something went wrong.
This is addressed by #119, which should hopefully be committed later today.
No branches or pull requests
The spec states that
/
is a binary operator (aBinop
), but doesn't give it any meaning (it's not considered an Arithmetic operation.It is included as an Augmented assignment (
/=
), but without behavioural specification.These all appear in the grammar reference.
Should
/
be removed from the grammar, or should its behaviour be specified?The text was updated successfully, but these errors were encountered: