Allow convert(String, :test)

I came to miss this during plotting. Is there a reason why Base does not define conversion from Symbol to String with a simple call of string?

Could you clarify what you mean by "simple call of string"?

julia> string(:a)
"a"

There is an issue about it here Convert between Symbol and AbstractString · Issue #35102 · JuliaLang/julia · GitHub

2 Likes

Percicely what you example shows

That is a higher level discussion that I would be able to partake in. Those are indeed good points.

So in generalz this should not be defined. My use case is concerning plotting, where i think an exception would make sense (allowing automatic conversion). But that is a seperate issue.