For displaying a string representation of custom types I have always defined show(io::IO, x::MyType)
What is the difference between this and defining writemime(io::IO, mime::MIME"text/plain", x::MyType) ? Which is preferred and why?
For displaying a string representation of custom types I have always defined show(io::IO, x::MyType)
What is the difference between this and defining writemime(io::IO, mime::MIME"text/plain", x::MyType) ? Which is preferred and why?