-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
String interpolation doc should mention show #21982
Labels
docs
This change adds or pertains to documentation
Comments
The doc is correct. julia> struct Blag end
julia> Base.string(a::String, b::Blag) = "hoy"
julia> "jo $(Blag())"
"hoy" It can certainly be clarified if you find it confusing. |
Link updated, doc issue still applies. |
JeffBezanson
added a commit
that referenced
this issue
Jan 31, 2019
KristofferC
pushed a commit
that referenced
this issue
Feb 20, 2020
KristofferC
pushed a commit
that referenced
this issue
Feb 20, 2020
KristofferC
pushed a commit
that referenced
this issue
Feb 20, 2020
KristofferC
pushed a commit
that referenced
this issue
Feb 22, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The docs say "Both concatenation and string interpolation call string() to convert objects into string form." but unless I'm mistaken, that's not true:
AFAICT the proper way to get custom printing is to overload
show
. If that's correct, I can make a PR.The text was updated successfully, but these errors were encountered: