-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Improve documentation of operators #60286
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
base: master
Are you sure you want to change the base?
Conversation
b39e988 to
d46161e
Compare
- Add adjoint operator to the precedence table at correct precedence level between :: and exponentiation - Explain exceptions to exponentiation precedence - Include implicit multiplication by juxtaposition of numeric literals in precedence table - Include arrows in precedence table - Note that comparison operators can be chained with undefined evaluation order - Explain that operators can be used in both infix and functional notation - Note that new operators can be defined with suffixes, and show an example
|
Given that the documentation previously said that a space was required in expressions like the |
|
hello @moble @stevengj I’ve been reading through the changes and I’m interested in contributing here as well. In particular, I’d like to help by adding a few concrete examples to clarify operator suffixes and chaining behavior, and double-checking that the precedence/associativity descriptions match actual Julia behavior. Let me know if you’d prefer examples in a specific section or if there are other gaps you’d like help filling. Happy to open a small follow-up commit if that’s useful. |
|
@Bhupendra-glitch Thanks! I'm hoping that this PR could be merged soon, so I think it makes more sense to open that as a separate PR. Feel free to ping me on it! @stevengj Does this look ready to go to you? |
Co-authored-by: Steven G. Johnson <[email protected]>
Co-authored-by: Steven G. Johnson <[email protected]>
I've always found the documentation of operators a little disjointed and incomplete; this PR aims to improve the situation.
::and before exponentiation||and?