-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add more @showarg examples #52410
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
Add more @showarg examples #52410
Conversation
Adds a few more examples to show how @showarg works with literals and interpolated string expressions.
fingolfin
left a comment
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.
I find the selection of examples a bit arbitrary but if you find it helpful, why not :-)
|
The docstring REPL does not permit these sort of inline comments. I am not sure this is that useful, since it is also just showing that different expressions parse differently, which is probably explained elsewhere (though I agree that it can take a while to fully appreciate the implications of that) |
|
@vtjnash that's a valid argument against merging this, of course. So who makes the decision whether to reject this, or whether to ask for further improvements? I personally could live with either, but we should not leave @bluesmoon hanging |
|
I'll update the MR. |
docstring REPL does not like inline comments on a line by itself, so move the comments to the code line (the line with the `julia>` prompt)
|
I've updated the MR with @vtjnash's & @fingolfin's suggestion. |
Adds a few more examples to show how @showarg works with literals and interpolated string expressions.