Skip to content

Conversation

@bluesmoon
Copy link
Contributor

Adds a few more examples to show how @showarg works with literals and interpolated string expressions.

Adds a few more examples to show how @showarg works with literals and interpolated string expressions.
@brenhinkeller brenhinkeller added the docs This change adds or pertains to documentation label Dec 8, 2023
Copy link
Member

@fingolfin fingolfin left a 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 :-)

@fingolfin fingolfin added the merge me PR is reviewed. Merge when all tests are passing label Feb 10, 2024
@vtjnash vtjnash removed the merge me PR is reviewed. Merge when all tests are passing label Feb 10, 2024
@vtjnash
Copy link
Member

vtjnash commented Feb 10, 2024

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)

@fingolfin
Copy link
Member

@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

@bluesmoon
Copy link
Contributor Author

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)
@bluesmoon
Copy link
Contributor Author

bluesmoon commented Feb 12, 2024

I've updated the MR with @vtjnash's & @fingolfin's suggestion.

@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Feb 12, 2024
@vtjnash vtjnash merged commit e8bf9bc into JuliaLang:master Feb 13, 2024
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This change adds or pertains to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants