-
-
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
Docs information on MIMEs? #56768
Comments
|
Okay, so the options for method definitions are these (where the variable name
and the options for method calls are these?
|
Looks like constant propagation nowadays makes the julia> using Test
julia> f() = MIME("text/plain")
f (generic function with 2 methods)
julia> @inferred f()
MIME type text/plain
julia> g(x) = show(stdout, "text/plain", x)
g (generic function with 1 method)
julia> @inferred g(3) though I'm not 100% convinced that |
I was reading through the docs section on Custom pretty-printing which introduces adding methods of
show
for different MIME types, but I have not been able to find the following information on MIMEs in the docs:a.
show(stdout, ::MIME("text/plain"), "hi")
b.
show(stdout, MIME("text/plain"), "hi")
c.
show(stdout, MIME"text/plain", "hi")
d.
show(stdout, "text/plain", "hi")
.The docs passage linked above has links to Networking and Streams and Multimedia I/O, but neither contain the information I am looking for. I imagine that information should be added to the top of Multimedia I/O, but I have not been able to find the answers myself yet outside of Wikipedia.
(I have an open PR #56767 on the Custom pretty-printing section to add other clarifications, but I'm not sure that is the place to add information about the MIMEs themselves.)
The text was updated successfully, but these errors were encountered: