You need to use Symbol to get the name. That can then be converted to a string though
julia> @enum Animal dog cat
julia> Symbol(cat)
:cat
julia> String(Symbol(cat))
"cat"
You need to use Symbol to get the name. That can then be converted to a string though
julia> @enum Animal dog cat
julia> Symbol(cat)
:cat
julia> String(Symbol(cat))
"cat"