-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Improve description of Julia keywords #29229
Conversation
557aa90
to
180297b
Compare
180297b
to
ccaf8ba
Compare
doc/src/base/base.md
Outdated
`abstract`, `mutable`, `primitive` and `type`. | ||
|
||
Finally `where` is resolved contextually as a keyword in parametric method | ||
definition syntax, but creation of variable named `where` is allowed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where
is parsed as an infix operator for writing parametric method definitions and certain types. in
and isa
are also parsed as infix operators. However these may generally be used as variable names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I have tried to improve the description.
(cherry picked from commit b777030)
Those keywords are not allowed to be used as variable names. | ||
|
||
The following two word sequences are reserved: | ||
`abstract type`, `mutable struct`, `primitive type`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
three word sequences, or "two-word" sequences
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to just open a new PR with the suggested changes instead of commenting on old merged PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I will make a PR to clarify it.
(cherry picked from commit b777030)
(cherry picked from commit b777030)
Clarification of keyword arguments documentation following #29197.